protected function updateAlias($model, $events = [], $path = null)
    {
        $namespace = getBaseName($model, 'Events');

        $events = $events ? $events : [
            'success'   => "{$namespace}\\UpdateSuccess",
            'fail'      => "{$namespace}\\UpdateFail",
        ];
        $this->setEvents($events);
        return $this->updateModel($model, $path);
    }
protected function updateAlias($model, $events = [], $path = null)
    {
        $namespace = getBaseName($model, 'Events');

        $events = $events ? $events : [
            'success'   => "{$namespace}\\UpdateSuccess",
            'fail'      => "{$namespace}\\UpdateFail",
        ];
        $this->setEvents($events);
        return $this->updateModel($model, $path);
    }
protected function updateAlias ( $ model , $ events = [ ] , $ path = null ) { $ namespace = getBaseName ( $ model , 'Events' ) ; $ events = $ events ? $ events : [ 'success' => "{$namespace}\\UpdateSuccess" , 'fail' => "{$namespace}\\UpdateFail" , ] ; $ this -> setEvents ( $ events ) ; return $ this -> updateModel ( $ model , $ path ) ; }
update alias method

@param \Illuminate\Database\Eloquent\Model $model
@param array $events
@param string|null $path
@return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
update alias method