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