$files->paginate($limit, $options = array())

Applies pagination to the collection

  • return ($files)

Example

$files      = $page->files()->paginate(10);
$pagination = $files->pagination();

Check out the docs for the $pagination object