Property | Type | Description | |
---|---|---|---|
$config | Illuminate\Contracts\Config\Repository | ||
$conversion | |||
$media | |||
$pathGenerator | Spatie\MediaLibrary\PathGenerator\PathGenerator |
Method | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Config\Repository $config ) | ||
getPathRelativeToRoot ( ) : string | * Get the path to the requested file relative to the root of the media directory. | |
setConversion ( |
||
setMedia ( |
||
setPathGenerator ( Spatie\MediaLibrary\PathGenerator\PathGenerator $pathGenerator ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator |
public __construct ( Illuminate\Contracts\Config\Repository $config ) | ||
$config | Illuminate\Contracts\Config\Repository |
public getPathRelativeToRoot ( ) : string | ||
return | string |
public setConversion ( |
||
$conversion | ||
return | Spatie\MediaLibrary\UrlGenerator\UrlGenerator |
public setMedia ( |
||
$media | ||
return | Spatie\MediaLibrary\UrlGenerator\UrlGenerator |
public setPathGenerator ( Spatie\MediaLibrary\PathGenerator\PathGenerator $pathGenerator ) : Spatie\MediaLibrary\UrlGenerator\UrlGenerator | ||
$pathGenerator | Spatie\MediaLibrary\PathGenerator\PathGenerator | |
return | Spatie\MediaLibrary\UrlGenerator\UrlGenerator |
protected Repository,Illuminate\Contracts\Config $config | ||
return | Illuminate\Contracts\Config\Repository |
protected Conversion,Spatie\MediaLibrary\Conversion $conversion | ||
return |
protected Media,Spatie\MediaLibrary $media | ||
return |