title: how pass array to where clause in laravel eloquent?
body: <p>Let's say i have this array of ids <code>[3,4,5]</code> which i get it from this Eloquent...</p>
  
  <pre><code>$route = Route::where('station_id',$stations_id)
                  -&gt;pluck('id')-&gt;toArray();
  </code></pre>
  
  <p>So, i wanted to use this array in where clause to get each schedule from each route and i did like this:</p>
  
  <pre><code>$schedule = Schedule::select('id')
                  -&gt;where('route_id',$route)
                  -&gt;get();
  </code></pre>
  
  <p>the problem is this showing the schedule ids of a one route only.</p>