interface DriverInterface

Methods

Cloud
build(string $diskName, SettingsRepositoryInterface $settings, Config $config, array $localConfig)

<p>Construct a Laravel Cloud filesystem for this filesystem driver.</p>

Details

Cloud build(string $diskName, SettingsRepositoryInterface $settings, Config $config, array $localConfig)

<p>Construct a Laravel Cloud filesystem for this filesystem driver.</p>

<p>Settings and configuration can either be pulled from the Flarum settings repository or the config.php file.</p> <p>Typically, this is done by wrapping a Flysystem adapter in Laravel's <code>Illuminate\Filesystem\FilesystemAdapter</code> class. You should ensure that the Flysystem adapter you use has a <code>getUrl</code> method. If it doesn't, you should create a subclass implementing that method. Otherwise, this driver won't work for public-facing disks like <code>flarum-assets</code> or <code>flarum-avatars</code>.</p>

Parameters

string $diskName
SettingsRepositoryInterface $settings
Config $config
array $localConfig

Return Value

Cloud