Laravel comes with very powerful and convenient wrapper for working with arrays. You must have used collections in Laravel specially while working with Eloquent. Eloquent returns the query results in custom Collection object ~ Eloquent Collection class is inherited from Laravel Collections therefore, it inherits all the powerful methods offered by  Laravel Collection and on top, provides few more great methods to use.

In this article, we will review some of the best and must-know Laravel Collection methods to make your life easier working with Laravel.

Note_: Remember, Eloquent Collection inherits Laravel Base Collection class thus it has access to all of the Base Collection’s methods but Base Collection object cannot access custom methods provided by eloquent collection. _

#laravel #laravel collection #php

15 Must know Laravel Collection Methods - Laravel Collections Tutorial
5.65 GEEK