From f2d562cd8b81255877d14ecb92f351e9c78d8b4f Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 24 Aug 2022 12:57:29 +0200 Subject: [PATCH] Update url_override comments --- assets/config.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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%', ],