class RemoveStorageSymlinksAction (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)

No description

static void
removeLink(string $publicPath, Tenant $tenant)

No description

Details

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.

Parameters

Tenant $tenant

Return Value

Collection

static protected bool symlinkExists(string $link)

Determine if the provided path is an existing symlink.

Parameters

string $link

Return Value

bool

static void handle(LazyCollection $tenants)

No description

Parameters

LazyCollection $tenants

Return Value

void

No description

Parameters

string $publicPath
Tenant $tenant

Return Value

void