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.