❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$files->first()
Returns the first file in the collection
return
($file)
Example
<?= $page->files()->first()->filename() ?>
↑
Cheat Sheet overview
←
$files->findBy($field, $value)
→
$files->flip()
↓
Back to Cheat Sheet section
Top