$pagination->pages()

Returns the total number of available pages

  • return (integer)
<?php

$subpages   = $page->children()->paginate(10);
$pagination = $subpages->pagination();

echo 'There are ' . $pagination->pages() . ' pages';

?>

Is something missing or incorrect? Edit this page on Github…