$pagination->lastPageUrl()
Returns the Url for the last page
$pagination->lastPageUrl(): string|null
Return types
string
ornull
This method modifies the existing $pagination
object it is applied to and returns it again.
Parent class
Examples
<?php
$subpages = $page->children()->paginate(10);
$pagination = $subpages->pagination();
?>
<!-- foreach loop with subpages -->
<a href="<?= $pagination->lastPageUrl() ?>">
Go to last page
</a>