1
0
Fork 0
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:
Samuel Štancl 2019-02-07 21:44:47 +01:00
parent 18ce4577bf
commit fceddb8c4d
5 changed files with 87 additions and 3 deletions

View file

@ -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));
}