$files->last() Returns the last element kirby/src/Toolkit/Collection.php#L667 $files->last(): mixed Return type mixed Parent class Kirby\Cms\Files inherited from Kirby\Toolkit\Collection Example <?= $page->files()->last()->filename() ?>