title: Laravel Eloquent with not identifying variables
body: <p>I am trying to use laravel-eloquent to get the rooms and their bookings which are after a particular date.</p>
  
  <pre><code>$fdate='2015-01-05';
  $roomdata=Rooms::where('city_id','=',$citydata['id'])
  -&gt;with('types')
  -&gt;with('localities')
  -&gt;with('slideshow')
  -&gt;with(array('booking' =&gt; function($query){
      $query-&gt;where('bookstart','&gt;',$fdate);
  }))
  -&gt;get();
  </code></pre>
  
  <p>This is giving me an error saying <code>$fdate</code> is undefined. But when I do</p>
  
  <pre><code>$query-&gt;where('bookstart','&gt;','2015-01-05');
  </code></pre>
  
  <p>This works great. Any reason behind this? Can someone provide a good solution for this problem?</p>