Beispiel #1
0
 /**
  * Return all categories in the given language
  *
  * @param  string $lang
  * @return object
  */
 public function allTranslatedIn($lang)
 {
     return $this->cache->tags([$this->entityName, 'global'])->remember("{$this->locale}.{$this->entityName}.allTranslatedIn.{$lang}", $this->cacheTime, function () use($lang) {
         return $this->repository->allTranslatedIn($lang);
     });
 }