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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners