mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:34: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();
|
$tenantKey = $tenant->getTenantKey();
|
||||||
|
|
||||||
foreach ($diskUrls as $disk => $publicPath) {
|
foreach ($diskUrls as $disk => $publicPath) {
|
||||||
$storagePath = str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk]);
|
$storagePath = storage_path(str_replace('%storage_path%', $suffixBase . $tenantKey, $disks[$disk]));
|
||||||
$publicPath = str_replace('%tenant_id%', $tenantKey, $publicPath);
|
$publicPath = public_path(str_replace('%tenant_id%', $tenantKey, $publicPath));
|
||||||
|
|
||||||
tenancy()->central(function () use ($symlinks, $publicPath, $storagePath) {
|
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