$files->findBy($field, $value)

Finds a single file by key and value

  • return ($file)

Example

<?= $page->files()->findBy('name', 'myfile')->url() ?>

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