interface DriverInterface
Methods
Cloud
build(string $diskName, SettingsRepositoryInterface $settings, Config $config, array $localConfig)
Construct a Laravel Cloud filesystem for this filesystem driver.
Details
at
line 38
Cloud
build(string $diskName, SettingsRepositoryInterface $settings, Config $config, array $localConfig)
Construct a Laravel Cloud filesystem for this filesystem driver.
Settings and configuration can either be pulled from the Flarum settings repository or the config.php file. Typically, this is done by wrapping a Flysystem adapter in Laravel's `Illuminate\Filesystem\FilesystemAdapter` class. You should ensure that the Flysystem adapter you use has a `getUrl` method. If it doesn't, you should create a subclass implementing that method. Otherwise, this driver won't work for public-facing disks like `flarum-assets` or `flarum-avatars`.