$files->last()

Returns the last file in the collection

  • return ($file)

Example

<?= $page->files()->last()->filename() ?>

Is something missing or incorrect? Edit this page on Github…