Storage
class Storage extends Facade (View source)
Properties
static protected Application|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
Create a fresh mock instance for the given class.
Get the registered name of the component.
Resolve the facade root instance from the container.
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.
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 47
static void
resolved(Closure $callback)
Run a Closure when the facade has been resolved.
static protected MockInterface
createFreshMockInstance()
Create a fresh mock instance for the given class.
static protected mixed
resolveFacadeInstance(string $name)
Resolve the facade root instance from the container.
static Filesystem
fake(string|null $disk = null, array $config = [])
Replace the given disk with a local testing disk.
static Filesystem
persistentFake(string|null $disk = null, array $config = [])
Replace the given disk with a persistent local testing disk.
static protected array
buildDiskConfiguration(string $disk, array $config, string $root)
Assemble the configuration of the given disk.
static bool
put(string $path, UploadedFile|string|resource $contents, mixed $options = [])
No description
static string|false
putFile(UploadedFile|string $path, UploadedFile|string|array|null $file = null, mixed $options = [])
No description
static string|false
putFileAs(UploadedFile|string $path, UploadedFile|string|array|null $file, string|array|null $name = null, mixed $options = [])
No description
static FilesystemAdapter
assertExists(string|array $path, string|null $content = null)
No description
static FilesystemAdapter
assertCount(string $path, int $count, bool $recursive = false)
No description
static StreamedResponse
response(string $path, string|null $name = null, array $headers = [], string|null $disposition = 'inline')
No description
static StreamedResponse
serve(Request $request, string $path, string|null $name = null, array $headers = [])
No description
static StreamedResponse
download(string $path, string|null $name = null, array $headers = [])
No description
static string
temporaryUrl(string $path, DateTimeInterface $expiration, array $options = [])
No description
static array
temporaryUploadUrl(string $path, DateTimeInterface $expiration, array $options = [])
No description
static FilesystemAdapter|mixed
when(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
No description
static FilesystemAdapter|mixed
unless(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
No description