Returns the last page number
$subpages = $page->children()->paginate(10); $pagination = $subpages->pagination(); echo $pagination->lastPage();