$pagination->page()
Returns the current page number
-
return (integer)
Example
<?php
$subpages = $page->children()->paginate(10);
$pagination = $subpages->pagination();
echo 'The current page is ' . $pagination->page();
?>
Returns the current page number
<?php
$subpages = $page->children()->paginate(10);
$pagination = $subpages->pagination();
echo 'The current page is ' . $pagination->page();
?>