1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 23:34:03 +00:00

Update url_override comments

This commit is contained in:
lukinovec 2022-08-24 12:57:29 +02:00
parent 346f9f795f
commit f2d562cd8b

View file

@ -119,12 +119,16 @@ return [
],
/*
* This makes local driver disks support tenant-aware Storage::disk()->url().
* Use `php artisan tenants:link` to create a symbolic link from the tenant's storage to his public directory.
* To enable tenant-aware Storage::disk()->url(), override a local driver disk's default URL with a URL that has %tenant_id%.
*
* 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' => [
// 'local disk' => 'public directory' (%tenant_id% will be replaced with actual tenant id)
// The local disk 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
'public' => 'public-%tenant_id%',
],