$pages->last()
Returns the last $page object from the collection
-
return ($page)
Example
<?= $page->children()->last()->title() ?>
Returns the last $page object from the collection
<?= $page->children()->last()->title() ?>