mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:34:03 +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' => [
|
'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' => [
|
'disks' => [
|
||||||
'local',
|
'local',
|
||||||
'public',
|
'public',
|
||||||
|
|
|
||||||
|
|
@ -36,11 +36,11 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
||||||
|
|
||||||
public function bootstrap(Tenant $tenant)
|
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()
|
// storage_path()
|
||||||
if ($this->app['config']['tenancy.filesystem.suffix_storage_path'] ?? true) {
|
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()
|
// asset()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue