How to insert an object into a collection Object in Laravel at specific index
<p>I have a collection with News items and I want to add a object to a specific index. For example:</p>

<pre><code>$item = new NewsItem();
$newsItems-&gt;add($item); // to index nr 3
</code></pre>