$pages->last()
Returns the last element
$pages->last(): mixed
Return type
mixed
Parent class
Kirby\Cms\Pages
inherited from Kirby\Toolkit\Collection
Example
<?= $page->children()->last()->title() ?>
Returns the last element
$pages->last(): mixed
mixed
Kirby\Cms\Pages
inherited from Kirby\Toolkit\Collection
<?= $page->children()->last()->title() ?>