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

Missing missing updates

Moving from $subject to $root when %storage_path% has been replaced
This commit is contained in:
Vincent GS 2022-03-04 02:10:09 -06:00 committed by GitHub
parent a2c8218e6a
commit ff04013644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
storage_path(), storage_path(),
$subject $subject
)) { )) {
$root = str_replace('%tenant%', $suffix, $subject); $root = str_replace('%tenant%', $suffix, $root);
$filesystemDisk->getAdapter()->setPathPrefix($finalPrefix = $root); $filesystemDisk->getAdapter()->setPathPrefix($finalPrefix = $root);
} else { } else {
$root = $this->app['config']["filesystems.disks.{$disk}.root"]; $root = $this->app['config']["filesystems.disks.{$disk}.root"];