CreateStorageSymlinksAction
class CreateStorageSymlinksAction (View source)
Traits
Methods
static Collection
possibleTenantSymlinks(Tenant $tenant)
Get all possible tenant symlinks, existing or not (array of ['public path' => 'storage path']).
static bool
symlinkExists(string $link)
Determine if the provided path is an existing symlink.
static void
handle(LazyCollection $tenants, bool $relativeLink = false, bool $force = false)
No description
static void
createLink(string $publicPath, string $storagePath, Tenant $tenant, bool $relativeLink, bool $force)
No description
Details
static protected Collection
possibleTenantSymlinks(Tenant $tenant)
Get all possible tenant symlinks, existing or not (array of ['public path' => 'storage path']).
Tenants can have a symlink for each disk registered in the tenancy.filesystem.url_override config.
This is used for creating all possible tenant symlinks and removing all existing tenant symlinks.
static protected bool
symlinkExists(string $link)
Determine if the provided path is an existing symlink.
static void
handle(LazyCollection $tenants, bool $relativeLink = false, bool $force = false)
No description
static protected void
createLink(string $publicPath, string $storagePath, Tenant $tenant, bool $relativeLink, bool $force)
No description