class Filesystem implements ExtenderInterface

Methods

disk(string $name, callable|string $callback)

<p>Declare a new filesystem disk.</p>

driver(string $name, string $driverClass)

<p>Register a new filesystem driver.</p>

void
extend(Container $container, Extension $extension = null)

No description

Details

Filesystem disk(string $name, callable|string $callback)

<p>Declare a new filesystem disk.</p>

<p>Disks represent storage locations, and are backed by storage drivers. Flarum core uses disks for storing assets and avatars.</p> <p>By default, the &quot;local&quot; driver will be used for disks. The &quot;local&quot; driver represents the filesystem where your Flarum installation is running.</p> <p>To declare a new disk, you must provide default configuration a &quot;local&quot; driver.</p>

Parameters

string $name
callable|string $callback

Return Value

Filesystem

See also

https://laravel.com/docs/10.x/filesystem#configuration

Filesystem driver(string $name, string $driverClass)

<p>Register a new filesystem driver.</p>

Parameters

string $name
string $driverClass

Return Value

Filesystem

void extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension

Return Value

void