diff --git a/assets/config.php b/assets/config.php index 52150c61..3ed61106 100644 --- a/assets/config.php +++ b/assets/config.php @@ -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%', ],