1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 15:54:03 +00:00

Session scoping & tenant() cleanup

This commit is contained in:
Samuel Štancl 2020-05-15 11:07:42 +02:00
parent c8f9a82745
commit 05d6383b99
6 changed files with 125 additions and 4 deletions

View file

@ -17,7 +17,7 @@ class CacheManager extends BaseCacheManager
*/
public function __call($method, $parameters)
{
$tags = [config('tenancy.cache.tag_base') . tenant('id')];
$tags = [config('tenancy.cache.tag_base') . tenant()->getTenantKey()];
if ($method === 'tags') {
if (count($parameters) !== 1) {