trait Storable

Properties

protected string|null $randomStorageName

The cached copy of the file's random name.

Methods

string|false
store(string $path = '', UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk.

string|false
storePublicly(string $path = '', UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk with public visibility.

string|false
storePubliclyAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk with public visibility.

string|false
storeAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk.

Details

at line 21
string|false store(string $path = '', UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk.

Parameters

string $path
UnitEnum|string|null $disk
array $options

Return Value

string|false

at line 29
string|false storePublicly(string $path = '', UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk with public visibility.

Parameters

string $path
UnitEnum|string|null $disk
array $options

Return Value

string|false

at line 39
string|false storePubliclyAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk with public visibility.

Parameters

string $path
string|null $name
UnitEnum|string|null $disk
array $options

Return Value

string|false

at line 53
string|false storeAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk.

Parameters

string $path
string|null $name
UnitEnum|string|null $disk
array $options

Return Value

string|false