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

Applies pagination to the collection

Example

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

Related

Check out the docs for the $pagination object