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

Adds a $pagination object to the collection, which makes it easy to page through items.

Related

Check out the docs for the $pagination object