src/BaseRepositoryEloquent.php
public function save($model)
    {
        if ($model instanceof Collection || is_array($model)) {
            throw new InvalidArgumentException('Parameter $model must be an instance of \Illuminate\Database\Eloquent\Model');
        }

        $this->validation()->validate('save', $model->getAttributes());

        $this->beforeSaveModel($model);

        return $model->save();
    }
public function save($model)
    {
        if ($model instanceof Collection || is_array($model)) {
            throw new InvalidArgumentException('Parameter $model must be an instance of \Illuminate\Database\Eloquent\Model');
        }

        $this->validation()->validate('save', $model->getAttributes());

        $this->beforeSaveModel($model);

        return $model->save();
    }
public function save ( $ model ) { if ( $ model instanceof Collection || is_array ( $ model ) ) { throw new InvalidArgumentException ( 'Parameter $model must be an instance of \Illuminate\Database\Eloquent\Model' ) ; } $ this -> validation ( ) -> validate ( 'save' , $ model -> getAttributes ( ) ) ; $ this -> beforeSaveModel ( $ model ) ; return $ model -> save ( ) ; }
Save the model.

@param  \Illuminate\Database\Eloquent\Model  $model
@return bool
Save the model .