title: Best Way to return multiple variables to view in laravel
body: <p>I have an action method which has in its body multiple Variables something like this :-</p>
  
  <pre><code>$bus=Bus::all();
  $user=User::all();
  $employer=employer::all();
  </code></pre>
  
  <p>what am doing to return those variables objects to the view is using code like this </p>
  
  <pre><code>return view('create')-&gt;with(compact('bus', $bus))-&gt;with(compact('user', $user))-&gt;with(compact('employer', $employer));
  </code></pre>
  
  <p>is there a way a method or something to return this objects at once without the need for all of this code some thing like </p>
  
  <pre><code>return view('create')-&gt;($user,$bus,$emp);
  </code></pre>
  
  <p>just example of what i want .</p>