$user->file()
Returns a specific file by filename or the first one
Parameters
Name | Type | Default |
---|---|---|
$filename | string |
null |
$in | string |
'files' |
Return type
Kirby\Cms\File
|null