From 5849afa4c8b70fdcb668ec0d6ce98f3cfd53ce2c Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 7 Apr 2023 12:03:55 +0200 Subject: [PATCH] Use `$this->config` instead of `config()` --- src/Bootstrappers/PrefixCacheTenancyBootstrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php index be4e952e..7a84b39d 100644 --- a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php +++ b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php @@ -64,7 +64,7 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper return static::$prefixGenerators[$store]($tenant); } - return $this->originalPrefixes[$store] . config('tenancy.cache.prefix_base') . $tenant->getTenantKey(); + return $this->originalPrefixes[$store] . $this->config->get('tenancy.cache.prefix_base') . $tenant->getTenantKey(); } public static function generatePrefixUsing(string $store, Closure $prefixGenerator): void