$files->nth($n)

Returns the nth file in the collection.

  • return ($file)

Example

<?= $page->files()->nth(3)->filename() ?>