mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-15 20:34:04 +00:00
Use my Laravel fork
This commit is contained in:
parent
8deeef25be
commit
62a2ed163c
3 changed files with 10 additions and 14 deletions
|
|
@ -42,7 +42,9 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper
|
|||
{
|
||||
$this->config->set('cache.prefix', $prefix);
|
||||
|
||||
$this->cacheManager->refreshStore();
|
||||
$newStore = $this->cacheManager->resolve($this->storeName ?? $this->cacheManager->getDefaultDriver())->getStore();
|
||||
|
||||
$this->cacheManager->driver($this->storeName)->setStore($newStore);
|
||||
|
||||
// It is needed when a call to the facade has been made before bootstrapping tenancy
|
||||
// The facade has its own cache, separate from the container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue