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

Finds a single file by key and value

  • return ($file)

Example

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