title: How to set limit on a Collection in Laravel (Eloquent)
body: <p>I want to query for some data that is of type Collection (according to Eloquent). When I query I want to set an upper bound. However, I cannot enforce this using</p>
  
  <pre><code>$data-&gt;skip(0)-&gt;take(5)-&gt;get();
  </code></pre>
  
  <p>nor by using</p>
  
  <pre><code>$data-&gt;offset(0)-&gt;limit(5)-&gt;get();
  </code></pre>
  
  <p>because <code>$data</code> is already a Collection and no longer a Builder type. How can I get the same functionality for Collection type?</p>