/** * Find a translation per namespace, group and item values * * @param string $locale * @param string $namespace * @param string $group * @param string $item * @return Translation */ public function findByCode($locale, $namespace, $group, $item) { return $this->model->whereLocale($locale)->whereNamespace($namespace)->whereGroup($group)->whereItem($item)->first(); }