Storage
class Storage extends Facade
Properties
| static protected | $app | The application instance being facaded. |
from Facade |
| static protected array | $resolvedInstance | The resolved object instances. |
from Facade |
| static protected bool | $cached | Indicates if the resolved instance should be cached. |
from Facade |
Methods
Get the registered name of the component.
Resolve the facade root instance from the container.
Clear a resolved facade instance.
Handle dynamic, static calls to the object.
Replace the given disk with a local testing disk.
Replace the given disk with a persistent local testing disk.
Get the root path of the given disk.
Assemble the configuration of the given disk.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
Facade at line 55
static void
resolved(Closure $callback)
Run a Closure when the facade has been resolved.
Boot-only. The callback is registered on the worker-global container and runs for every subsequent resolution of the facade accessor.
in
Facade at line 71
static
spy()
Convert the facade into a Mockery spy.
in
Facade at line 89
static
partialMock()
Initiate a partial mock on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 105
static
shouldReceive()
Initiate a mock expectation on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 121
static
expects()
Initiate a mock expectation on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 135
static protected
createFreshMockInstance()
Create a fresh mock instance for the given class.
in
Facade at line 147
static protected
createMock()
Create a fresh mock instance for the given class.
in
Facade at line 157
static protected bool
isMock()
Determines whether a mock is set as the instance of the facade.
in
Facade at line 168
static protected string|null
getMockableClass()
Get the mockable class for the bound instance.
in
Facade at line 184
static
swap(mixed $instance)
Hotswap the underlying instance behind the facade.
Tests only. Replaces the worker-wide resolved facade instance and container binding; runtime use races across coroutines and changes every subsequent facade call.
in
Facade at line 196
static bool
isFake()
Determines whether a "fake" has been set as the facade instance.
in
Facade at line 207
static mixed
getFacadeRoot()
Get the root object behind the facade.
at line 191
static protected string
getFacadeAccessor()
Get the registered name of the component.
in
Facade at line 223
static protected mixed
resolveFacadeInstance(string $name)
Resolve the facade root instance from the container.
in
Facade at line 246
static void
clearResolvedInstance(string|null $name = null)
Clear a resolved facade instance.
Boot or tests only. Clears a worker-wide facade cache entry; concurrent coroutines may still hold the previous resolved instance.
in
Facade at line 257
static void
clearResolvedInstances()
Clear all of the resolved instances.
Boot or tests only. Clears the worker-wide facade cache; concurrent coroutines may still hold previously resolved instances.
in
Facade at line 265
static Collection
defaultAliases()
Get the application default aliases.
in
Facade at line 324
static
getFacadeApplication()
Get the application instance behind the facade.
in
Facade at line 337
static void
setFacadeApplication(mixed $app)
Set the application instance.
Tests only. Replaces the worker-wide facade application reference; runtime use races across coroutines and breaks every facade lookup.
in
Facade at line 347
static
__callStatic(string $method, array $args)
Handle dynamic, static calls to the object.
at line 111
static Filesystem
fake(UnitEnum|string|null $disk = null, array $config = [])
Replace the given disk with a local testing disk.
Tests only. Swaps a cached filesystem disk on the shared filesystem manager for the worker lifetime.
at line 152
static Filesystem
persistentFake(UnitEnum|string|null $disk = null, array $config = [])
Replace the given disk with a persistent local testing disk.
Tests only. Swaps a cached filesystem disk on the shared filesystem manager for the worker lifetime.
at line 172
static protected string
getRootPath(string $disk)
Get the root path of the given disk.
at line 180
static protected array
buildDiskConfiguration(string $disk, array $config, string $root)
Assemble the configuration of the given disk.
at line 101
static Filesystem
drive(UnitEnum|string|null $name = 'null')
No description
at line 101
static Filesystem
disk(UnitEnum|string|null $name = 'null')
No description
at line 101
static Filesystem
build(array|string $config)
No description
at line 101
static Filesystem
createLocalDriver(array $config, string $name = '\'local\'')
No description
at line 101
static Filesystem
createFtpDriver(array $config)
No description
at line 101
static Filesystem
createSftpDriver(array $config)
No description
at line 101
static Cloud
createS3Driver(array $config)
No description
at line 101
static Cloud
createGcsDriver(array $config)
No description
at line 101
static Filesystem
createScopedDriver(array $config)
No description
at line 101
static FilesystemManager
set(string $name, mixed $disk)
No description
at line 101
static string
getDefaultDriver()
No description
at line 101
static FilesystemManager
forgetDisk(array|string $disk)
No description
at line 101
static void
purge(string|null $name = 'null')
No description
at line 101
static FilesystemManager
extend(string $driver, Closure $callback, bool $poolable = 'false')
No description
at line 101
static FilesystemManager
setApplication(Container $app)
No description
at line 101
static FilesystemManager
setReleaseCallback(string $driver, Closure $callback)
No description
at line 101
static Closure|null
getReleaseCallback(string $driver)
No description
at line 101
static FilesystemManager
addPoolable(string $driver)
No description
at line 101
static FilesystemManager
removePoolable(string $driver)
No description
at line 101
static array
getPoolables()
No description
at line 101
static FilesystemManager
setPoolables(array $poolables)
No description
at line 101
static string
path(string $path)
No description
at line 101
static bool
exists(string $path)
No description
at line 101
static string|null
get(string $path)
No description
at line 101
static null|resource
readStream(string $path)
No description
at line 101
static null|resource
readStreamRange(string $path, int|null $start, int|null $end)
No description
at line 101
static string|bool
put(string $path, UploadedFile $contents, mixed $options = '[]')
No description
at line 101
static string|false
putFile(UploadedFile|string $path, UploadedFile|array|string|null $file = 'null', mixed $options = '[]')
No description
at line 101
static string|false
putFileAs(UploadedFile|string $path, UploadedFile|array|string|null $file, array|string|null $name = 'null', mixed $options = '[]')
No description
at line 101
static bool
writeStream(string $path, resource $resource, array $options = '[]')
No description
at line 101
static string
getVisibility(string $path)
No description
at line 101
static bool
setVisibility(string $path, string $visibility)
No description
at line 101
static bool
prepend(string $path, string $data, string $separator = '"\\n"')
No description
at line 101
static bool
append(string $path, string $data, string $separator = '"\\n"')
No description
at line 101
static bool
delete(array|string $paths)
No description
at line 101
static bool
copy(string $from, string $to)
No description
at line 101
static bool
move(string $from, string $to)
No description
at line 101
static int
size(string $path)
No description
at line 101
static int
lastModified(string $path)
No description
at line 101
static array
files(string|null $directory = 'null', bool $recursive = 'false')
No description
at line 101
static array
allFiles(string|null $directory = 'null')
No description
at line 101
static array
directories(string|null $directory = 'null', bool $recursive = 'false')
No description
at line 101
static array
allDirectories(string|null $directory = 'null')
No description
at line 101
static bool
makeDirectory(string $path)
No description
at line 101
static bool
deleteDirectory(string $directory)
No description
at line 101
static FilesystemAdapter
assertExists(array|string $path, string|null $content = 'null')
No description
at line 101
static FilesystemAdapter
assertCount(string $path, int $count, bool $recursive = 'false')
No description
at line 101
static FilesystemAdapter
assertMissing(array|string $path)
No description
at line 101
static FilesystemAdapter
assertDirectoryEmpty(string $path)
No description
at line 101
static FilesystemAdapter
assertEmpty()
No description
at line 101
static bool
missing(string $path)
No description
at line 101
static bool
fileExists(string $path)
No description
at line 101
static bool
fileMissing(string $path)
No description
at line 101
static bool
directoryExists(string $path)
No description
at line 101
static bool
directoryMissing(string $path)
No description
at line 101
static array|bool|float|int|string|null
json(string $path, int $flags = '0')
No description
at line 101
static StreamedResponse
response(string $path, string|null $name = 'null', array $headers = '[]', string $disposition = '\'inline\'')
No description
at line 101
static Response
serve(Request $request, string $path, string|null $name = 'null', array $headers = '[]')
No description
at line 101
static StreamedResponse
download(string $path, string|null $name = 'null', array $headers = '[]')
No description
at line 101
static string|false
checksum(string $path, array $options = '[]')
No description
at line 101
static string|false
mimeType(string $path)
No description
at line 101
static string
url(string $path)
No description
at line 101
static bool
providesTemporaryUrls()
No description
at line 101
static bool
providesTemporaryUploadUrls()
No description
at line 101
static string
temporaryUrl(string $path, DateTimeInterface $expiration, array $options = '[]')
No description
at line 101
static array|string
temporaryUploadUrl(string $path, DateTimeInterface $expiration, array $options = '[]')
No description
at line 101
static array
getConfig()
No description
at line 101
static mixed
withDriver(Closure $callback)
No description
at line 101
static mixed
withAdapter(Closure $callback)
No description
at line 101
static mixed
withClient(Closure $callback)
No description
at line 101
static PoolDefinition
getDefinition()
No description
at line 101
static string
getPoolName()
No description
at line 101
static bool
invalidatePool()
No description
at line 101
static void
serveUsing(Closure|null $callback)
No description
at line 101
static void
buildTemporaryUrlsUsing(Closure|null $callback)
No description
at line 101
static void
buildTemporaryUploadUrlsUsing(Closure|null $callback)
No description
at line 101
static Filesystem|mixed
when(Closure|mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')
No description
at line 101
static Filesystem|mixed
unless(Closure|mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')
No description
at line 101
static bool
has(string $location)
No description
at line 101
static string
read(string $location)
No description
at line 101
static int
fileSize(string $path)
No description
at line 101
static string
visibility(string $path)
No description
at line 101
static void
write(string $location, string $contents, array $config = '[]')
No description
at line 101
static void
createDirectory(string $location, array $config = '[]')
No description