public function update(ResetPasswordRequest $request)
    {
        try {
            $this->dispatch(new ResetPassword($request->get('token'), $request->get('email'), $request->get('password')));

            return redirect()->route('authentication::session.create')->withErrors([
                'authentication::password-reset.updated' => trans('authentication::password-reset.updated'),
            ]);
        } catch (TokenIsExpired $e) {
            return redirect()->route('authentication::password-reset.create')->withErrors([
                'authentication::password-reset.expired' => trans('authentication::password-reset.expired'),
            ]);
        }
    }
public function update(ResetPasswordRequest $request)
    {
        try {
            $this->dispatch(new ResetPassword($request->get('token'), $request->get('email'), $request->get('password')));

            return redirect()->route('authentication::session.create')->withErrors([
                'authentication::password-reset.updated' => trans('authentication::password-reset.updated'),
            ]);
        } catch (TokenIsExpired $e) {
            return redirect()->route('authentication::password-reset.create')->withErrors([
                'authentication::password-reset.expired' => trans('authentication::password-reset.expired'),
            ]);
        }
    }
public function update ( ResetPasswordRequest $ request ) { try { $ this -> dispatch ( new ResetPassword ( $ request -> get ( 'token' ) , $ request -> get ( 'email' ) , $ request -> get ( 'password' ) ) ) ; return redirect ( ) -> route ( 'authentication::session.create' ) -> withErrors ( [ 'authentication::password-reset.updated' => trans ( 'authentication::password-reset.updated' ) , ] ) ; } catch ( TokenIsExpired $ e ) { return redirect ( ) -> route ( 'authentication::password-reset.create' ) -> withErrors ( [ 'authentication::password-reset.expired' => trans ( 'authentication::password-reset.expired' ) , ] ) ; } }
Attempts to reset the password.

@param ResetPasswordRequest $request
@return RedirectResponse
Attempts to reset the password .