FilesystemManager
class FilesystemManager implements Factory mixin Filesystem mixin FilesystemAdapter (View source)
Properties
protected Application | $app | The application instance. |
|
protected array | $disks | The array of resolved filesystem drivers. |
|
protected array | $customCreators | The registered custom driver creators. |
Methods
Get a filesystem instance.
Get a filesystem instance.
Get a default cloud filesystem instance.
Build an on-demand disk.
Attempt to get the disk from the local cache.
Resolve the given disk.
Call a custom driver creator.
Create an instance of the local driver.
Create an instance of the ftp driver.
Create an instance of the sftp driver.
Create an instance of the Amazon S3 driver.
Format the given S3 configuration with the default options.
Create a scoped driver.
Create a Flysystem instance with the given adapter.
Set the given disk instance.
Get the filesystem connection configuration.
Get the default driver name.
Get the default cloud driver name.
Unset the given disk instances.
Disconnect the given disk and remove from local cache.
Dynamically call the default driver instance.
Details
void
__construct(Application $app)
Create a new filesystem manager instance.
Filesystem
drive(string|null $name = null)
Get a filesystem instance.
Filesystem
disk(string|null $name = null)
Get a filesystem instance.
Filesystem
cloud()
Get a default cloud filesystem instance.
Filesystem
build(string|array $config)
Build an on-demand disk.
protected Filesystem
get(string $name)
Attempt to get the disk from the local cache.
protected Filesystem
resolve(string $name, array|null $config = null)
Resolve the given disk.
protected Filesystem
callCustomCreator(array $config)
Call a custom driver creator.
Filesystem
createLocalDriver(array $config)
Create an instance of the local driver.
Filesystem
createFtpDriver(array $config)
Create an instance of the ftp driver.
Filesystem
createSftpDriver(array $config)
Create an instance of the sftp driver.
Cloud
createS3Driver(array $config)
Create an instance of the Amazon S3 driver.
protected array
formatS3Config(array $config)
Format the given S3 configuration with the default options.
Filesystem
createScopedDriver(array $config)
Create a scoped driver.
protected FilesystemOperator
createFlysystem(FilesystemAdapter $adapter, array $config)
Create a Flysystem instance with the given adapter.
$this
set(string $name, mixed $disk)
Set the given disk instance.
protected array
getConfig(string $name)
Get the filesystem connection configuration.
string
getDefaultDriver()
Get the default driver name.
string
getDefaultCloudDriver()
Get the default cloud driver name.
$this
forgetDisk(array|string $disk)
Unset the given disk instances.
void
purge(string|null $name = null)
Disconnect the given disk and remove from local cache.
$this
extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
$this
setApplication(Application $app)
Set the application instance used by the manager.
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.