public function save(array $options = []) {
        $saved = parent::save($options);

        array_walk($this->translations, function($translation, $locale)  {
            if(! array_filter($translation))
                return false;

            $this->newTranslation($locale, $translation)
                ->save();
        });

        return $saved;
    }
public function save(array $options = []) {
        $saved = parent::save($options);

        array_walk($this->translations, function($translation, $locale)  {
            if(! array_filter($translation))
                return false;

            $this->newTranslation($locale, $translation)
                ->save();
        });

        return $saved;
    }
public function save ( array $ options = [ ] ) { $ saved = parent :: save ( $ options ) ; array_walk ( $ this -> translations , function ( $ translation , $ locale ) { if ( ! array_filter ( $ translation ) ) return false ; $ this -> newTranslation ( $ locale , $ translation ) -> save ( ) ; } ) ; return $ saved ; }
Save eloquent model .

@param array $options
@return mixed
Save eloquent model .