mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:34:03 +00:00
Improve url_override comment, add todos
This commit is contained in:
parent
c27f8e80bf
commit
3c7535a0d6
1 changed files with 5 additions and 1 deletions
|
|
@ -119,7 +119,9 @@ return [
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To enable tenant-aware Storage::disk()->url(), override a local driver disk's default URL with a URL that has %tenant_id%.
|
* Tenant-aware Storage::disk()->url() can be enabled for specific local disks here
|
||||||
|
* by mapping the disk's name to a name with '%tenant_id%' (this will be used as the public name of the disk).
|
||||||
|
* Doing that will override the disk's default URL with a URL containing the current tenant's key.
|
||||||
*
|
*
|
||||||
* For example, Storage::disk('public')->url('') will return https://your-app.test/storage/ by default.
|
* For example, Storage::disk('public')->url('') will return https://your-app.test/storage/ by default.
|
||||||
* After adding 'public' => 'public-%tenant_id%' to 'url_override',
|
* After adding 'public' => 'public-%tenant_id%' to 'url_override',
|
||||||
|
|
@ -129,6 +131,8 @@ return [
|
||||||
*/
|
*/
|
||||||
'url_override' => [
|
'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.root_override config
|
||||||
|
// todo@v4 Rename %tenant_id% to %tenant_key%
|
||||||
|
// todo@v4 Rename url_override to something that describes the config key better
|
||||||
'public' => 'public-%tenant_id%',
|
'public' => 'public-%tenant_id%',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue