mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-15 22:44:04 +00:00
Update url_override comments
This commit is contained in:
parent
346f9f795f
commit
f2d562cd8b
1 changed files with 8 additions and 4 deletions
|
|
@ -119,12 +119,16 @@ return [
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This makes local driver disks support tenant-aware Storage::disk()->url().
|
* To enable tenant-aware Storage::disk()->url(), override a local driver disk's default URL with a URL that has %tenant_id%.
|
||||||
* Use `php artisan tenants:link` to create a symbolic link from the tenant's storage to his public directory.
|
*
|
||||||
|
* For example, Storage::disk('public')->url('') will return https://your-app.test/storage/ by default.
|
||||||
|
* After adding 'public' => 'public-%tenant_id%' to 'url_override',
|
||||||
|
* the returned URL will be https://your-app.test/public-1/ (%tenant_id% gets substitued by the current tenant's ID).
|
||||||
|
*
|
||||||
|
* Use `php artisan tenants:link` to create a symbolic link from the tenant's storage to its public directory.
|
||||||
*/
|
*/
|
||||||
'url_override' => [
|
'url_override' => [
|
||||||
// 'local disk' => 'public directory' (%tenant_id% will be replaced with actual tenant id)
|
// Note that the local disk you add must exist in the tenancy.filesystem.root_override config
|
||||||
// The local disk must exist in the tenancy.filesystem.root_override config
|
|
||||||
'public' => 'public-%tenant_id%',
|
'public' => 'public-%tenant_id%',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue