Laravel Collection keys modification : <p>I use <code>filter</code> method from <code>Collection</code> class to remove some objects from collection. But after that operation, sometimes objects with keys eg. 1, 4, 5 left. I would like to always have elements with order 0, 1, 2, 3 etc. after <code>filter</code> action.</p>

<p>Is there any elegant way to do it without rewriting table to a new one?</p>

<p>Thanks!</p>
