Storage
class Storage extends Facade
Properties
| static protected Container|null | $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
Initiate a mock expectation on the facade.
Initiate a mock expectation on the facade.
Create a fresh mock instance for the given class.
Get the registered name of the component.
Resolve the facade root instance from the container.
Clear a resolved facade instance.
Get the application instance behind the facade.
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.
Get methods that should be excluded from the generated facade docblock.
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
No description
No description
No description
No description
No description
Details
in
Facade at line 61
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 81
static MockInterface|null
spy()
Convert the facade into a Mockery spy.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 99
static MockInterface
partialMock()
Initiate a partial mock on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 115
static CompositeExpectation|Expectation|HigherOrderMessage
shouldReceive()
Initiate a mock expectation on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 131
static CompositeExpectation|Expectation|ExpectsHigherOrderMessage
expects()
Initiate a mock expectation on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 145
static protected MockInterface
createFreshMockInstance()
Create a fresh mock instance for the given class.
in
Facade at line 157
static protected MockInterface
createMock()
Create a fresh mock instance for the given class.
in
Facade at line 167
static protected bool
isMock()
Determines whether a mock is set as the instance of the facade.
in
Facade at line 178
static protected string|null
getMockableClass()
Get the mockable class for the bound instance.
in
Facade at line 194
static void
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 206
static bool
isFake()
Determines whether a "fake" has been set as the facade instance.
in
Facade at line 217
static mixed
getFacadeRoot()
Get the root object behind the facade.
at line 228
static protected string
getFacadeAccessor()
Get the registered name of the component.
in
Facade at line 233
static protected mixed
resolveFacadeInstance(string $name)
Resolve the facade root instance from the container.
in
Facade at line 256
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 267
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 275
static Collection
defaultAliases()
Get the application default aliases.
in
Facade at line 335
static Container|null
getFacadeApplication()
Get the application instance behind the facade.
in
Facade at line 346
static void
setFacadeApplication(Container|null $app)
Set the application instance.
Boot or tests only. Replaces the worker-wide facade application reference; runtime use races across coroutines and breaks every facade lookup.
in
Facade at line 356
static mixed
__callStatic(string $method, array $args)
Handle dynamic, static calls to the object.
at line 116
static LocalFilesystemAdapter
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 157
static LocalFilesystemAdapter
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 180
static protected string
getRootPath(string $disk)
Get the root path of the given disk.
at line 188
static protected array
buildDiskConfiguration(string $disk, array $config, string $root)
Assemble the configuration of the given disk.
at line 210
static protected array
ignoredFacadeDocumenterMethods()
Get methods that should be excluded from the generated facade docblock.
The Storage facade documents methods supported by every disk plus the borrow-scoped accessors for pooled disks. Disk-specific raw accessors and adapter extensions remain available on compatible resolved disks.
at line 108
static FilesystemManager
addPoolableDriver(string $driver)
No description
at line 108
static Filesystem
build(array|string $config, string|null $name = 'null')
No description
at line 108
static Filesystem
createFtpDriver(array $config)
No description
at line 108
static Cloud
createGcsDriver(array $config)
No description
at line 108
static Filesystem
createLocalDriver(array $config, string $name = '\'local\'')
No description
at line 108
static Filesystem
createReadThroughDriver(array $config, string $name = '\'read-through\'')
No description
at line 108
static Cloud
createS3Driver(array $config)
No description
at line 108
static Filesystem
createScopedDriver(array $config, string|null $name = 'null')
No description
at line 108
static Filesystem
createSftpDriver(array $config)
No description
at line 108
static Filesystem
disk(UnitEnum|string|null $name = 'null')
No description
at line 108
static Filesystem
drive(UnitEnum|string|null $name = 'null')
No description
at line 108
static FilesystemManager
extend(string $driver, Closure $callback, bool $poolable = 'false')
No description
at line 108
static void
flushState()
No description
at line 108
static FilesystemManager
forgetDisk(array|string $disk)
No description
at line 108
static string
getDefaultDriver()
No description
at line 108
static array
getPoolableDrivers()
No description
at line 108
static Closure|null
getReleaseCallback(string $driver)
No description
at line 108
static void
purge(string|null $name = 'null')
No description
at line 108
static FilesystemManager
removePoolableDriver(string $driver)
No description
at line 108
static FilesystemManager
set(string $name, mixed $disk)
No description
at line 108
static FilesystemManager
setApplication(Container $app)
No description
at line 108
static FilesystemManager
setPoolableDrivers(array $poolableDrivers)
No description
at line 108
static FilesystemManager
setReleaseCallback(string $driver, Closure $callback)
No description
at line 108
static mixed
unless(mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')
No description
at line 108
static mixed
when(mixed $value = 'null', null|callable $callback = 'null', null|callable $default = 'null')
No description
at line 108
static string[]
allDirectories(string|null $directory = 'null')
No description
at line 108
static string[]
allFiles(string|null $directory = 'null')
No description
at line 108
static bool
append(string $path, string $data, string $separator = '"\\n"')
No description
at line 108
static bool
copy(string $from, string $to)
No description
at line 108
static bool
delete(array|string $paths)
No description
at line 108
static bool
deleteDirectory(string $directory)
No description
at line 108
static string[]
directories(string|null $directory = 'null', bool $recursive = 'false')
No description
at line 108
static bool
exists(string $path)
No description
at line 108
static string[]
files(string|null $directory = 'null', bool $recursive = 'false')
No description
at line 108
static string|null
get(string $path)
No description
at line 108
static string
getVisibility(string $path)
No description
at line 108
static int
lastModified(string $path)
No description
at line 108
static bool
makeDirectory(string $path)
No description
at line 108
static bool
move(string $from, string $to)
No description
at line 108
static string
path(string $path)
No description
at line 108
static bool
prepend(string $path, string $data, string $separator = '"\\n"')
No description
at line 108
static string|bool
put(string $path, UploadedFile $contents, mixed $options = '[]')
No description
at line 108
static string|false
putFile(UploadedFile|string $path, UploadedFile|array|string|null $file = 'null', mixed $options = '[]')
No description
at line 108
static string|false
putFileAs(UploadedFile|string $path, UploadedFile|array|string|null $file, array|string|null $name = 'null', mixed $options = '[]')
No description
at line 108
static null|resource
readStream(string $path)
No description
at line 108
static null|resource
readStreamRange(string $path, int|null $start, int|null $end)
No description
at line 108
static bool
setVisibility(string $path, string $visibility)
No description
at line 108
static int
size(string $path)
No description
at line 108
static bool
writeStream(string $path, resource $resource, array $options = '[]')
No description
at line 108
static FilesystemAdapter
assertCount(string $path, int $count, bool $recursive = 'false')
No description
at line 108
static FilesystemAdapter
assertDirectoryEmpty(string $path)
No description
at line 108
static FilesystemAdapter
assertEmpty()
No description
at line 108
static FilesystemAdapter
assertExists(array|string $path, string|null $content = 'null')
No description
at line 108
static FilesystemAdapter
assertMissing(array|string $path)
No description
at line 108
static void
buildTemporaryUploadUrlsUsing(Closure|null $callback)
No description
at line 108
static void
buildTemporaryUrlsUsing(Closure|null $callback)
No description
at line 108
static string|false
checksum(string $path, array $options = '[]')
No description
at line 108
static bool
copyToDisk(UnitEnum|string $disk, string $from, string|null $to = 'null')
No description
at line 108
static bool
directoryExists(string $path)
No description
at line 108
static bool
directoryMissing(string $path)
No description
at line 108
static StreamedResponse
download(string $path, string|null $name = 'null', array $headers = '[]')
No description
at line 108
static bool
fileExists(string $path)
No description
at line 108
static bool
fileMissing(string $path)
No description
at line 108
static array
getConfig()
No description
at line 108
static Image
image(string $path)
No description
at line 108
static array|string|int|float|bool|null
json(string $path, int $flags = '0')
No description
at line 108
static string|false
mimeType(string $path)
No description
at line 108
static bool
missing(string $path)
No description
at line 108
static bool
moveToDisk(UnitEnum|string $disk, string $from, string|null $to = 'null')
No description
at line 108
static bool
providesTemporaryUploadUrls()
No description
at line 108
static bool
providesTemporaryUrls()
No description
at line 108
static StreamedResponse
response(string $path, string|null $name = 'null', array $headers = '[]', string $disposition = '\'inline\'')
No description
at line 108
static Response
serve(Request $request, string $path, string|null $name = 'null', array $headers = '[]')
No description
at line 108
static void
serveUsing(Closure|null $callback)
No description
at line 108
static array|string
temporaryUploadUrl(string $path, DateTimeInterface $expiration, array $options = '[]')
No description
at line 108
static string
temporaryUrl(string $path, DateTimeInterface $expiration, array $options = '[]')
No description
at line 108
static string
url(string $path)
No description
at line 108
static void
createDirectory(string $location, array $config = '[]')
No description
at line 108
static int
fileSize(string $path)
No description
at line 108
static bool
has(string $location)
No description
at line 108
static string
read(string $location)
No description
at line 108
static string
visibility(string $path)
No description
at line 108
static void
write(string $location, string $contents, array $config = '[]')
No description
at line 108
static PoolDefinition
getDefinition()
No description
at line 108
static FilesystemOperator
getOperator()
No description
at line 108
static string
getPoolName()
No description
at line 108
static bool
invalidatePool()
No description
at line 108
static mixed
withAdapter(Closure $callback)
No description
at line 108
static mixed
withClient(Closure $callback)
No description
at line 108
static mixed
withDriver(Closure $callback)
No description