I have a collection which I want to iterate and modify while I fetch some of its elements. But I could\'t find a way or method to remove that fetched element.
You would want to use ->forget()
->forget()
$collection->forget($key);
Link to the forget method documentation