public function publish($language)
    {
        $translations = $this->getTranslationGroups($language->translations);
        foreach ($translations as $area => $groups) {
            foreach ($groups as $group => $items) {
                if (!isset($this->hints[$group])) {
                    continue;
                }
                $path = $this->getResourcePath($language->code, $area, $group);
                $this->publishTranslations($path, $items);
            }
            $this->putGitignore($area);
        }
        return true;
    }
public function publish($language)
    {
        $translations = $this->getTranslationGroups($language->translations);
        foreach ($translations as $area => $groups) {
            foreach ($groups as $group => $items) {
                if (!isset($this->hints[$group])) {
                    continue;
                }
                $path = $this->getResourcePath($language->code, $area, $group);
                $this->publishTranslations($path, $items);
            }
            $this->putGitignore($area);
        }
        return true;
    }
public function publish ( $ language ) { $ translations = $ this -> getTranslationGroups ( $ language -> translations ) ; foreach ( $ translations as $ area => $ groups ) { foreach ( $ groups as $ group => $ items ) { if ( ! isset ( $ this -> hints [ $ group ] ) ) { continue ; } $ path = $ this -> getResourcePath ( $ language -> code , $ area , $ group ) ; $ this -> publishTranslations ( $ path , $ items ) ; } $ this -> putGitignore ( $ area ) ; } return true ; }
publish translations from database

@param \Illuminate\Database\Eloquent\Model $language
@return boolean
publish translations from database