1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:34:04 +00:00

Change possibleTenantSymlinks not to prefix the paths twice while tenancy is initialized

This commit is contained in:
lukinovec 2022-08-31 08:38:22 +02:00
parent f61675473a
commit 8e06ae61e6

View file

@ -27,7 +27,9 @@ trait DealsWithTenantSymlinks
$storagePath = str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk]);
$publicPath = str_replace('%tenant_id%', $tenantKey, $publicPath);
$symlinks->push([public_path($publicPath) => storage_path($storagePath)]);
tenancy()->central(function() use ($symlinks, $publicPath, $storagePath) {
$symlinks->push([public_path($publicPath) => storage_path($storagePath)]);
});
}
return $symlinks->mapWithKeys(fn ($item) => $item);