mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 08:24:04 +00:00
Correct storagePath and publicPath variables
This commit is contained in:
parent
e9cb5aae31
commit
e3aa8e2086
1 changed files with 3 additions and 3 deletions
|
|
@ -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]);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue