$asset->mediaRoot()
Returns the absolute path to the file in the public media folder
$asset->mediaRoot(string|null $filename = null): string
Parameters
Name | Type | Default |
---|---|---|
$filename | string ornull |
null
|
Return type
string
This method modifies the existing $asset
object it is applied to and returns it again.