how to pass two variables to view in controller (laravel 5.3)
<p>I have two different queries which are saved in two variables.I want to pass the variables to view page from controller.</p>

<pre><code>public function getApprovalList(){
 // $users = select query..
 // $request = select query.. 
   return view('travelerHome',['users'=&gt;$users,'request'=&gt;$request]);
}
</code></pre>

<p><strong>solution:</strong> </p>

<p><strong>controller</strong>  </p>

<pre><code>return view('travelerHome',['users'=&gt;$users,'requestList'=&gt;$request]);
</code></pre>

<p><strong>view</strong> </p>

<pre><code>@foreach ($requestList as $req)
  {{$req-&gt;traveler_name }}
@endforeach
</code></pre>