collection::limit

Returns a new collection with a limited number of elements

collection::limit($limit)

Parameters

$limit (int)
The number of elements to return

Return values

\Collection