Bånder

Disk
in package
uses ForwardsCalls

Tags
mixin

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
self

getFilesystemAdapter()

public getFilesystemAdapter() : Filesystem
Return values
Filesystem

getName()

Returns the name of the disk. It generates a name if the disk is an instance of Flysystem.

public getName() : string
Return values
string

getTemporaryDirectory()

Creates a new TemporaryDirectory instance if none is set, otherwise it returns the current one.

public getTemporaryDirectory() : string
Return values
string

isLocalDisk()

public isLocalDisk() : bool
Return values
bool

make()

Little helper method to instantiate this class.

public static make(mixed $disk) : self
Parameters
$disk : mixed
Return values
self

makeMedia()

public makeMedia(string $path) : Media
Parameters
$path : string
Return values
Media

makeTemporaryDisk()

public static makeTemporaryDisk() : self
Return values
self

normalizePath()

Replaces backward slashes into forward slashes.

public static normalizePath(string $path) : string
Parameters
$path : string
Return values
string

path()

Get the full path for the file at the given "short" path.

public path(string $path) : string
Parameters
$path : string
Return values
string

getFlysystemAdapter()

private getFlysystemAdapter() : FlysystemFilesystemAdapter
Return values
FlysystemFilesystemAdapter

        
On this page

Search results