$files->last()
Returns the last element
$files->last(): mixed
Return type
mixed
Example
<?= $page->files()->last()->filename() ?>
Inherited from
Kirby\Toolkit\Collection
Returns the last element
$files->last(): mixed
mixed
<?= $page->files()->last()->filename() ?>
Kirby\Toolkit\Collection