From 132bc00d38a29596f4ded0b7f82dd74753543d77 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 27 Sep 2022 10:49:31 +0200 Subject: [PATCH] Revert "Correct storagePath and publicPath variables" This reverts commit e3aa8e208686e5fdf8e15a3bdb88d6f9853316fe. --- 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 b0b36f99..a4c972bb 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 = storage_path(str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk])); - $publicPath = public_path(str_replace('%tenant_id%', $tenantKey, $publicPath)); + $storagePath = str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk]); + $publicPath = str_replace('%tenant_id%', $tenantKey, $publicPath); tenancy()->central(function () use ($symlinks, $publicPath, $storagePath) { - $symlinks->push([$publicPath => $storagePath]); + $symlinks->push([public_path($publicPath) => storage_path($storagePath)]); }); }