mirror of
https://github.com/archtechx/tenancy.git
synced 2026-09-20 13:34:04 +00:00
Stop requiring a root_override in possibleTenantSymlinks
The symlink target used to be built from the root_override template, so a disk without an entry there had nothing to resolve. The symlink target is now the disk's tenant-context root, which the bootstrapper sets either way -- with a root_override it expands the template, without one, it appends the suffix to the disk's own root. Disks that only have a url_override now get a working symlink instead of being skipped while their URL was still overridden. Skipping disks with a null url_override is now explicit. The root_override check used to cover that by accident, and without it str_replace() gets null and throws a TypeError.
This commit is contained in:
parent
aad435da44
commit
ae77c49985
2 changed files with 9 additions and 7 deletions
|
|
@ -357,7 +357,7 @@ return [
|
|||
* Use `php artisan tenants:link` to create a symbolic link from the tenant's storage to its public directory.
|
||||
*/
|
||||
'url_override' => [
|
||||
// Note that the local disk you add must exist in the tenancy.filesystem.root_override config
|
||||
// Note that the local disk you add must exist in the tenancy.filesystem.disks config
|
||||
'public' => 'public-%tenant%',
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue