initialized && static::$addTags) { $tags = [config('tenancy.cache.tag_base') . tenant()?->getTenantKey()]; if ($method === 'tags') { $count = count($parameters); if ($count !== 1) { throw new \Exception("Method tags() takes exactly 1 argument. $count passed."); } $names = $parameters[0]; $names = (array) $names; // cache()->tags('foo') https://laravel.com/docs/9.x/cache#removing-tagged-cache-items return $this->store()->tags(array_merge($tags, $names)); } return $this->store()->tags($tags)->$method(...$parameters); } return parent::__call($method, $parameters); } }