$file->mediaRoot()
Returns the absolute path to the file in the public media folder
$file->mediaRoot(string|null $filename = null): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$filename | string ornull |
null
|
Optional override for the filename |
Return type
string