protected function saveTranslatedMessage(Model $model, $lang)
    {
        if (!$model->translation->isEmpty()) {
            return false;
        }
        $message = $model->translated($lang->code);
        return $model->translation()->getModel()->newInstance([
                    'log_id'  => $model->id,
                    'lang_id' => array_get($lang, 'id'),
                    'raw'     => strip_tags($message),
                    'text'    => $message
                ])->save();
    }
protected function saveTranslatedMessage(Model $model, $lang)
    {
        if (!$model->translation->isEmpty()) {
            return false;
        }
        $message = $model->translated($lang->code);
        return $model->translation()->getModel()->newInstance([
                    'log_id'  => $model->id,
                    'lang_id' => array_get($lang, 'id'),
                    'raw'     => strip_tags($message),
                    'text'    => $message
                ])->save();
    }
protected function saveTranslatedMessage ( Model $ model , $ lang ) { if ( ! $ model -> translation -> isEmpty ( ) ) { return false ; } $ message = $ model -> translated ( $ lang -> code ) ; return $ model -> translation ( ) -> getModel ( ) -> newInstance ( [ 'log_id' => $ model -> id , 'lang_id' => array_get ( $ lang , 'id' ) , 'raw' => strip_tags ( $ message ) , 'text' => $ message ] ) -> save ( ) ; }
Saves translated message

@param Model $model
@param String $message
@param array $lang
@return boolean
Saves translated message