Skip to content

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.

final readonly class FilesystemConfig

SourceFilesystemConfig.php
PropertyTypeDescription
$defaultDiskstringreadonly.
$localRootstringreadonly.

public function __construct(string $defaultDisk, string $localRoot): mixed

ParameterTypeDescription
$defaultDiskstring
$localRootstring

Returns mixed

MethodDescription
fromConfig(): FilesystemConfigReads the current filesystem.* settings into a snapshot.

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