FilesystemConfig
Typed snapshot of the filesystem.* settings family.
Defaults here are read as fallbacks only — FilesystemPlugin is what actually publishes them into Config via configDefault().
v1 supports one instance per driver alias — there is no multi-instance config for e.g. two differently-configured S3 buckets under the same s3 alias.
Synopsis
Section titled “Synopsis”final readonly class FilesystemConfig
| Source | FilesystemConfig.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$defaultDisk | string | readonly. |
$localRoot | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $defaultDisk, string $localRoot): mixed
| Parameter | Type | Description |
|---|---|---|
$defaultDisk | string | |
$localRoot | string |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
fromConfig(): FilesystemConfig | Reads the current filesystem.* settings into a snapshot. |
fromConfig()
Section titled “fromConfig()”public static function fromConfig(): FilesystemConfig
Reads the current filesystem.* settings into a snapshot.
The values are captured at call time; a later Config change is not reflected in an instance already built. Missing settings fall back to the local disk rooted at storage/app.
Returns FilesystemConfig