title: How to limit a foreach on an object in Laravel?
body: <p>So I'm working with Laravel and I'm trying to return the whole part of an object except the first thing.
  I tried <code>array_slice()</code> as shown above but it break the page.</p>
  
  <pre><code>{{gettype($formulas)}} --&gt; object
  
  @foreach(array_slice($formulas-&gt;toArray(), 1, 5) as $f)
      &lt;label&gt;{{$f-&gt;name}}&lt;/label&gt;
  @endforeach
  </code></pre>
  
  <p>So is there a way to do the same thing but with an object?</p>