title: Laravel 4 - Eloquent adding a sub query to array
body: <p>I'm using Laravel 4 to write a reviews system.  Each Product has many reviews an each review has many votes.  I would like to display a "4 out of 5 found this useful" to each review using the votes.</p>
  
  <p>Votes is a separate table linked to Reviews by the Eloquent hasMany() method.</p>
  
  <p>Is there a clever Laravel way of doing this, or am I reduced to using some horrid loops in the controller to add the value to the array?</p>
  
  <p>Below is how I am currently getting the votes with the reviews.</p>
  
  <pre><code>$this-&gt;reviews = $this-&gt;product
    -&gt;reviews()
    -&gt;active()
    -&gt;orderBy('created_at', 'DESC')
    -&gt;with('votes')
    -&gt;get();
  </code></pre>