From ae39e4dfd49bfbb209faccd8802d1ad3e8441420 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 29 Oct 2025 14:56:37 +0100 Subject: [PATCH] Clarify behavior in log bootstrapper comments --- src/Bootstrappers/LogTenancyBootstrapper.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Bootstrappers/LogTenancyBootstrapper.php b/src/Bootstrappers/LogTenancyBootstrapper.php index 0355dd7e..aec26084 100644 --- a/src/Bootstrappers/LogTenancyBootstrapper.php +++ b/src/Bootstrappers/LogTenancyBootstrapper.php @@ -17,6 +17,7 @@ use Stancl\Tenancy\Contracts\Tenant; * but feel free to customize that using the $storagePathChannels property) * are configured to use tenant storage directories. * For this to work correctly, this bootstrapper must run *after* FilesystemTenancyBootstrapper. + * FilesystemTenancyBootstrapper alters how storage_path() works in the tenant context. * * The bootstrapper also supports custom channel overrides via the $channelOverrides property (see the property's docblock). * @@ -27,8 +28,8 @@ class LogTenancyBootstrapper implements TenancyBootstrapper protected array $defaultConfig = []; /** - * Log channels that use the storage_path() helper for storing the logs. - * Requires FilesystemTenancyBootstrapper to run before this bootstrapper. + * Log channels that use the storage_path() helper for storing the logs. Requires FilesystemTenancyBootstrapper to run before this bootstrapper. + * Or you can bypass this default behavior by using overrides, since they take precedence over the default behavior. */ public static array $storagePathChannels = ['single', 'daily'];