collection::slice

Returns a slice of the collection

collection::slice($offset = null, $limit = null)

Parameters

$offset (int)
The optional index to start the slice from
$limit (int)
The optional number of elements to return

Return values

\Collection