title: Laravel Eloquent Limit in Relation that has Sub Relation
body: <p>I have hasmany relation from category to contents, and I want limitation 4 content for each category.</p>
  
  <p>I would like to limit the result of relation <strong>contents</strong> that has sub relation to <strong>languages</strong></p>
  
  <p>My Code</p>
  
  <pre><code>Category::with(['contents.languages' =&gt; function($query){
          $query-&gt;limit(4);
      }])
          -&gt;get();
  </code></pre>
  
  <p>But I see in log the limit works on <strong>languages</strong> relation, not contents, that I wanted is limit on <strong>contents</strong></p>