Disk
in package
uses
ForwardsCalls
Tags
Table of Contents
Properties
- $disk : string|Filesystem
- $filesystemAdapter : FilesystemAdapter
- $temporaryDirectory : string
Methods
- __call() : mixed
- Forwards all calls to Laravel's FilesystemAdapter which will pass dynamic methods call onto Flysystem.
- __construct() : mixed
- clone() : self
- Creates a fresh instance, mostly used to force a new TemporaryDirectory.
- getFilesystemAdapter() : Filesystem
- getName() : string
- Returns the name of the disk. It generates a name if the disk is an instance of Flysystem.
- getTemporaryDirectory() : string
- Creates a new TemporaryDirectory instance if none is set, otherwise it returns the current one.
- isLocalDisk() : bool
- make() : self
- Little helper method to instantiate this class.
- makeMedia() : Media
- makeTemporaryDisk() : self
- normalizePath() : string
- Replaces backward slashes into forward slashes.
- path() : string
- Get the full path for the file at the given "short" path.
- getFlysystemAdapter() : FlysystemFilesystemAdapter
Properties
$disk
private
string|Filesystem
$disk
$filesystemAdapter
private
FilesystemAdapter
$filesystemAdapter
$temporaryDirectory
private
string
$temporaryDirectory
Methods
__call()
Forwards all calls to Laravel's FilesystemAdapter which will pass dynamic methods call onto Flysystem.
public
__call(mixed $method, mixed $parameters) : mixed
Parameters
- $method : mixed
- $parameters : mixed
__construct()
public
__construct(mixed $disk) : mixed
Parameters
- $disk : mixed
clone()
Creates a fresh instance, mostly used to force a new TemporaryDirectory.
public
clone() : self
Return values
selfgetFilesystemAdapter()
public
getFilesystemAdapter() : Filesystem
Return values
FilesystemgetName()
Returns the name of the disk. It generates a name if the disk is an instance of Flysystem.
public
getName() : string
Return values
stringgetTemporaryDirectory()
Creates a new TemporaryDirectory instance if none is set, otherwise it returns the current one.
public
getTemporaryDirectory() : string
Return values
stringisLocalDisk()
public
isLocalDisk() : bool
Return values
boolmake()
Little helper method to instantiate this class.
public
static make(mixed $disk) : self
Parameters
- $disk : mixed
Return values
selfmakeMedia()
public
makeMedia(string $path) : Media
Parameters
- $path : string
Return values
MediamakeTemporaryDisk()
public
static makeTemporaryDisk() : self
Return values
selfnormalizePath()
Replaces backward slashes into forward slashes.
public
static normalizePath(string $path) : string
Parameters
- $path : string
Return values
stringpath()
Get the full path for the file at the given "short" path.
public
path(string $path) : string
Parameters
- $path : string
Return values
stringgetFlysystemAdapter()
private
getFlysystemAdapter() : FlysystemFilesystemAdapter