title: Laravel Eager loading select columns
body: <p>I get the following error when i try this error: Call to undefined method Illuminate\Database\Eloquent\Collection::select()
  Running this:</p>
  
  <pre><code>Portfolio::find($id)-&gt;transactions
          -&gt;select('id','date','symbol','transaction_type','qty','amount');
  </code></pre>
  
  <p>but this works.</p>
  
  <pre><code>Portfolio::find($id)-&gt;transactions
  </code></pre>
  
  <p>I have a relationship in my portfolio model for</p>
  
  <pre><code>$this-&gt;hasMany('Transaction','portfolio_id');
  </code></pre>
  
  <p>So now to the real question. How can i select certain fields from the transactions table using eager loading? or do i need to do it using query builder</p>