Laravel - Collections - The Enumerable Contract
Almost all methods available on the Collection
class are also available on the LazyCollection
class. Both of these classes implement the Illuminate\Support\Enumerable
contract, which defines the following methods:
Methods that mutate the collection (such asshift
,pop
,prepend
etc.) are not available on theLazyCollection
class.