$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';
?>
Returns the total number of available pages
<?php
$subpages = $page->children()->paginate(10);
$pagination = $subpages->pagination();
echo 'There are ' . $pagination->pages() . ' pages';
?>