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

Revert "Correct storagePath and publicPath variables"

This reverts commit e3aa8e2086.
This commit is contained in:
lukinovec 2022-09-27 10:49:31 +02:00
parent e3aa8e2086
commit 132bc00d38

View file

@ -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)]);
});
}