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