Laravel - Collections - Available Methods
All Eloquent collections extend the base Laravel collection object; therefore, they inherit all of the powerful methods provided by the base collection class.
In addition, the
Illuminate\Database\Eloquent\Collection class provides a superset of methods to aid with managing your model collections. Most methods return
Illuminate\Database\Eloquent\Collection instances; however, some methods, like
modelKeys, return an