From d6b4d9b7a7a4383b54e3554e4eec8ca3aee031c6 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Mon, 28 Nov 2022 15:09:39 +0500 Subject: [PATCH] user `getTenantKey` method --- 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 29407706..dc9989b4 100644 --- a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php +++ b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php @@ -25,7 +25,7 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper $this->originalPrefix = $this->app['config']['cache.prefix']; $this->storeName = $this->app['config']['cache.default']; - $this->setCachePrefix($this->app['config']['tenancy.cache.prefix_base'] . $tenant->id); + $this->setCachePrefix($this->app['config']['tenancy.cache.prefix_base'] . $tenant->getTenantKey()); } public function revert(): void