1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:54:05 +00:00

Update FilesystemTenancyBootstrapper.php

This commit is contained in:
Mike 2020-12-07 01:29:49 -05:00 committed by GitHub
parent 6915f67199
commit 160f887fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,11 +36,11 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
public function bootstrap(Tenant $tenant)
{
$storage_base = $this->app['config']['tenancy.filesystem.storage_base'] . $tenant->getTenantKey();
$storage = $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'] . "/{$storage_base}");
$this->app->useStoragePath($this->originalPaths['storage'] . "/{$storage}");
}
// asset()