PHP Interface Spatie\MediaLibrary\PathGenerator\PathGenerator

显示文件 Open project: spatie/laravel-medialibrary Interface Usage Examples

Public Methods

Method Description
getPath ( Media $media ) : string * Get the path for the given media, relative to the root storage path.
getPathForConversions ( Media $media ) : string * Get the path for conversions of the given media, relative to the root storage path.

Method Details

getPath() public method

* Get the path for the given media, relative to the root storage path.
public getPath ( Media $media ) : string
$media Spatie\MediaLibrary\Media
return string

getPathForConversions() public method

* Get the path for conversions of the given media, relative to the root storage path.
public getPathForConversions ( Media $media ) : string
$media Spatie\MediaLibrary\Media
return string