From e3aa8e208686e5fdf8e15a3bdb88d6f9853316fe Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 27 Sep 2022 10:24:45 +0200 Subject: [PATCH] Correct storagePath and publicPath variables --- src/Concerns/DealsWithTenantSymlinks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Concerns/DealsWithTenantSymlinks.php b/src/Concerns/DealsWithTenantSymlinks.php index a4c972bb..b0b36f99 100644 --- a/src/Concerns/DealsWithTenantSymlinks.php +++ b/src/Concerns/DealsWithTenantSymlinks.php @@ -25,11 +25,11 @@ trait DealsWithTenantSymlinks $tenantKey = $tenant->getTenantKey(); foreach ($diskUrls as $disk => $publicPath) { - $storagePath = str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk]); - $publicPath = str_replace('%tenant_id%', $tenantKey, $publicPath); + $storagePath = storage_path(str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk])); + $publicPath = public_path(str_replace('%tenant_id%', $tenantKey, $publicPath)); tenancy()->central(function () use ($symlinks, $publicPath, $storagePath) { - $symlinks->push([public_path($publicPath) => storage_path($storagePath)]); + $symlinks->push([$publicPath => $storagePath]); }); }