collection::paginate

Add pagination

collection::paginate($limit, $options = array())

Parameters

$limit (int)
the number of items per page
$options (array)
and optional array with options for the pagination class

Return values

object
a sliced set of data