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

Fix composer dump autoload issue on fresh installation

This commit is contained in:
Adedayo Sule-Odu 2022-05-02 13:17:09 +01:00
parent 0569bf5a34
commit 6aa3cd9c66

View file

@ -63,12 +63,12 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
$finalPrefix = str_replace(
'%storage_path%',
storage_path(),
$this->app['config']["tenancy.filesystem.root_override.{$disk}"] ?? '',
$this->app['config']["tenancy.filesystem.root_override.{$disk}"] ?? ''
);
if (! $finalPrefix) {
if (!$finalPrefix) {
$finalPrefix = $originalRoot
? rtrim($originalRoot, '/') . '/'. $suffix
? rtrim($originalRoot, '/') . '/' . $suffix
: $suffix;
}