title: Laravel 4 hasMany with WHERE clause
body: <p>Not sure if this is the correct way to add an additional query to the hasMany argument but was unsuccessful. Is this possible?</p>
  
  <pre><code>public function menuItems($parent=false){
      if($parent){
          $menuItems = $this-&gt;hasMany('MenuItem')-&gt;where('parent',$parent);
      }else{
          $menuItems = $this-&gt;hasMany('MenuItem');
      }
      return $menuItems;
  }
  </code></pre>
  
  <p>When called using </p>
  
  <pre><code>$menu_items = $menu-&gt;menuItems(0);
  </code></pre>
  
  <p>This just seems to return an empty array when passed a parent. Even though data with MenuItem->parent = 0 exists</p>
  
  <p>Do I need to some way distinguish I'm asking for my linked items "parent" and not the main models "parent"</p>