PHP Class Spatie\MediaLibrary\PathGenerator\BasePathGenerator

Inheritance: implements Spatie\MediaLibrary\PathGenerator\PathGenerator
Datei anzeigen Open project: spatie/laravel-medialibrary Class 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.

Protected Methods

Method Description
getBasePath ( Media $media ) : string * Get a (unique) base path for the given media.

Method Details

getBasePath() protected method

* Get a (unique) base path for the given media.
protected getBasePath ( Media $media ) : string
$media Spatie\MediaLibrary\Media
return string

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