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

Finds a single file by key and value

  • return ($file)

Example

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