trait DealsWithTenantSymlinks (View source)

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.

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