mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44: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,16 +42,4 @@ class CacheManager extends BaseCacheManager
|
|||
|
||||
return $this->store()->tags($tags)->$method(...$parameters);
|
||||
}
|
||||
|
||||
public function refreshStore(string|null $repository = null): void
|
||||
{
|
||||
// Could be public setStore(string $store) in Illuminate\Cache\Repository
|
||||
Repository::macro('setStore', function ($store) {
|
||||
$this->store = $store;
|
||||
});
|
||||
|
||||
$newStore = $this->resolve($repository ?? $this->getDefaultDriver())->getStore();
|
||||
|
||||
$this->driver($repository)->setStore($newStore);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue