Метод |
Описание |
|
boot ( ) |
|
|
contents ( ) : string |
Retrieve the contents of the file. |
|
fileExists ( ) : boolean |
Check if the file exists on disk. |
|
getAbsolutePath ( ) : string |
Get the absolute filesystem path to the file. |
|
getBasenameAttribute ( ) : string |
Retrieve the file extension. |
|
getDiskPath ( ) : string |
Get the path to the file relative to the root of the disk. |
|
getUrl ( ) : string |
Get the absolute URL to the media file. |
|
isPubliclyAccessible ( ) : boolean |
Check if the file is located below the public webroot. |
|
models ( string $class ) : Illuminate\Database\Eloquent\Relations\MorphToMany |
Retrieve all associated models of given class. |
|
move ( string $destination, string $filename = null ) : void |
Move the file to a new location on disk. |
|
readableSize ( integer $precision = 1 ) : string |
Calculate the file size in human readable byte notation. |
|
rename ( $filename ) : void |
Rename the file in place. |
|
scopeForPathOnDisk ( Builder $q, string $disk, string $path ) : void |
Query scope finding media at a path relative to a disk. |
|
scopeInDirectory ( Builder $q, string $disk, string $directory, boolean $recursive = false ) : void |
Query scope for to find media in a particular directory. |
|
scopeInOrUnderDirectory ( Builder $q, string $disk, string $directory ) : void |
Query scope for finding media in a particular directory or one of its subdirectories. |
|
scopeUnordered ( Builder $q ) : void |
Query scope to remove the order by clause from the query. |
|
scopeWhereBasename ( Builder $q, string $basename ) : void |
Query scope for finding media by basename. |
|