$file->asset()
Returns the file asset object. A new object will be created if it doesn't exist yet. The instance will be cached to avoid multiple instantiations, when calling asset methods.
$file->asset(array|string|null $props = null): File
Parameters
| Name | Type | Default |
|---|---|---|
| $props | arrayorstringornull |
null
|