public function saveTranslations(
            \Illuminate\Database\Eloquent\Model $model, 
            array $translations){
        
        if(empty($translations))
            throw new MissingTranslationsException;
        
        if(empty($this->translation_name))
            throw new MissingTranslationNameException;
        
        return $model->{$this->translation_name}()->saveMany($translations);
    }
public function saveTranslations(
            \Illuminate\Database\Eloquent\Model $model, 
            array $translations){
        
        if(empty($translations))
            throw new MissingTranslationsException;
        
        if(empty($this->translation_name))
            throw new MissingTranslationNameException;
        
        return $model->{$this->translation_name}()->saveMany($translations);
    }
public function saveTranslations ( \ Illuminate \ Database \ Eloquent \ Model $ model , array $ translations ) { if ( empty ( $ translations ) ) throw new MissingTranslationsException ; if ( empty ( $ this -> translation_name ) ) throw new MissingTranslationNameException ; return $ model -> { $ this -> translation_name } ( ) -> saveMany ( $ translations ) ; }
Save translations to model
@param \Illuminate\Database\Eloquent\Model $model
@param array $translations
@param string $relation_name
@return Model
Save translations to model