If you used Laravel, probably you know and used the powerful Collection class. The Collection class (Illuminate\Support\Collection) is included in the Illuminate Collections package https://packagist.org/packages/illuminate/collections Collection class is useful when you need to work with collections of data, and you need some additional powerful method.

To install a previous version of Illuminate Collections package: composer require illuminate/collections:8.x #use-collection-class Use Collection class

You can: require the autoload file; import (via use keyword) Illuminate\Support\Collection; instance the Object from Collection class; use a method like all() from Collection class.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners