protected function setCacheLocale(Model $locale) { if (!$this->cache->has($locale->code)) { $id = sprintf('translation.%s', $locale->code); $this->cache->put($id, $locale, $this->cacheTime); } }