public function update(UpdateUserRequest $request)
    {
        $this->dispatch(new UpdateUser($this->auth->user()->id, $request->get('name'), $request->get('email')));
        return redirect()->route('authentication::profile.show');
    }
public function update(UpdateUserRequest $request)
    {
        $this->dispatch(new UpdateUser($this->auth->user()->id, $request->get('name'), $request->get('email')));
        return redirect()->route('authentication::profile.show');
    }
public function update ( UpdateUserRequest $ request ) { $ this -> dispatch ( new UpdateUser ( $ this -> auth -> user ( ) -> id , $ request -> get ( 'name' ) , $ request -> get ( 'email' ) ) ) ; return redirect ( ) -> route ( 'authentication::profile.show' ) ; }
Attempts to update the user profile.

@param UpdateUserRequest $request
@return RedirectResponse
Attempts to update the user profile .