mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Add more tests
This commit is contained in:
parent
18ce4577bf
commit
fceddb8c4d
5 changed files with 87 additions and 3 deletions
|
|
@ -11,6 +11,10 @@ class CacheManager extends BaseCacheManager
|
|||
$tags = [config('tenancy.cache.prefix_base') . tenant('uuid')];
|
||||
|
||||
if ($method === "tags") {
|
||||
if (count($parameters == 1) && is_array($parameters[0])) {
|
||||
$parameters = [$parameters]; // cache()->tags('foo') https://laravel.com/docs/5.7/cache#removing-tagged-cache-items
|
||||
}
|
||||
|
||||
return $this->store()->tags(array_merge($tags, ...$parameters));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue