title: Laravel Many to Many relationship
body: <p>I have 3 tables</p>
  
  <ul>
  <li>Item (Belongs to Many Tag)</li>
  <li>Tag (Belongs to Many Item)</li>
  <li>Item_Tag(contains item_id &amp; tag_id)</li>
  </ul>
  
  <p>I'm trying to use ORM to retrieve the Tags from Item</p>
  
  <pre><code>$itemTags = Item::find($itemID)-&gt;tags;
  </code></pre>
  
  <p>Returns <code>object(Illuminate\Database\Eloquent\Collection)#203 (1) { ["items":protected]=&gt; array(0) { } }</code></p>
  
  <p>If i add ()</p>
  
  <pre><code>$itemTags = Item::find($itemID)-&gt;tags();
  </code></pre>
  
  <p>I get a long page of stuff. </p>
  
  <p>How do i grab the tags that is related to this item?</p>
  
  <p>Model Tag</p>
  
  <pre><code>&lt;?php
  
  class Tag extends Eloquent {
  
      protected $fillable = array('tag');
      public function item()
      {
          return $this-&gt;belongsToMany('Item');
      }
  
  
  }
  </code></pre>
  
  <p>Model Item</p>
  
  <pre><code>&lt;?php
  
  class Item extends Eloquent {
  
      protected $fillable = array('title', 'price','user_id');
  
  
      public function tags()
      {
          return $this-&gt;belongsToMany('Tag');
      }
  }
  </code></pre>