mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:34:04 +00:00
[FIX] Storage base was labeled as a suffix when infact it was a prefix
This commit is contained in:
parent
9e9899349f
commit
e645a28e7c
2 changed files with 5 additions and 5 deletions
|
|
@ -96,9 +96,9 @@ return [
|
|||
*/
|
||||
'filesystem' => [
|
||||
/**
|
||||
* Each disk listed in the 'disks' array will be suffixed by the suffix_base, followed by the tenant_id.
|
||||
* Each disk listed in the 'disks' array will be prefixed by the storage_base, followed by the tenant_id.
|
||||
*/
|
||||
'suffix_base' => 'tenant',
|
||||
'storage_base' => 'tenant',
|
||||
'disks' => [
|
||||
'local',
|
||||
'public',
|
||||
|
|
@ -150,8 +150,8 @@ return [
|
|||
'prefix_base' => 'tenant', // Each key in Redis will be prepended by this prefix_base, followed by the tenant id.
|
||||
'prefixed_connections' => [ // Redis connections whose keys are prefixed, to separate one tenant's keys from another.
|
||||
// 'default',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
/**
|
||||
* Features are classes that provide additional functionality
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
|||
|
||||
public function bootstrap(Tenant $tenant)
|
||||
{
|
||||
$suffix = $this->app['config']['tenancy.filesystem.suffix_base'] . $tenant->getTenantKey();
|
||||
$storage_base = $this->app['config']['tenancy.filesystem.storage_base'] . $tenant->getTenantKey();
|
||||
|
||||
// storage_path()
|
||||
if ($this->app['config']['tenancy.filesystem.suffix_storage_path'] ?? true) {
|
||||
$this->app->useStoragePath($this->originalPaths['storage'] . "/{$suffix}");
|
||||
$this->app->useStoragePath($this->originalPaths['storage'] . "/{$storage_base}");
|
||||
}
|
||||
|
||||
// asset()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue