$files->nth($n)

Returns the nth file in the collection.

  • return ($file)

Example

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

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