/** * @return \Illuminate\Database\Eloquent\Collection */ public function all() { return $this->cache->tags([$this->entityName, 'global'])->remember("{$this->locale}.{$this->entityName}.all", $this->cacheTime, function () { return $this->repository->all(); }); }