mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:24:04 +00:00
Make Cache::tags() support named parameters (fix #1256)
This commit is contained in:
parent
f2e1648973
commit
ed029438cb
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ class CacheManager extends BaseCacheManager
|
||||||
throw new \Exception("Method tags() takes exactly 1 argument. $count passed.");
|
throw new \Exception("Method tags() takes exactly 1 argument. $count passed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$names = $parameters[0];
|
$names = array_values($parameters)[0];
|
||||||
$names = (array) $names; // cache()->tags('foo') https://laravel.com/docs/5.7/cache#removing-tagged-cache-items
|
$names = (array) $names; // cache()->tags('foo') https://laravel.com/docs/5.7/cache#removing-tagged-cache-items
|
||||||
|
|
||||||
return $this->store()->tags(array_merge($tags, $names));
|
return $this->store()->tags(array_merge($tags, $names));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue