How to array_values laravel collection?
<p>I have a search result from <code>image</code> model and <code>$photo</code> saved the data which <code>$photo-&gt;type == 'photo'</code>.</p>

<pre><code>$photo = $image-&gt;filter(function($photo,$key) use($path){
    if($photo-&gt;type == 'photo'){
        $photo-&gt;url = $path.$photo-&gt;image;
             return $photo;
    }
});
</code></pre>

<p>Here is the <code>$photo</code> collection and is there any way to <code>array_values()</code> the <code>items</code> data?</p>

<pre><code>Collection {#352 ▼
  #items: array:3 [▼
    2 =&gt; ImageBanquet {#349 ▶}
    3 =&gt; ImageBanquet {#350 ▶}
    4 =&gt; ImageBanquet {#351 ▶}
  ]
}
</code></pre>