src/Core/Auth/ResetPasswords.php
public function reset(Request $request)
    {
        $data = new PasswordResetData();

        $form = $this->form(new PasswordResetForm($data));
        $form->handleRequest($request);

        if ($form->isNotValid()) {
            return back()->withErrors($form->errors()->all());
        }

        $response = $this->broker()->reset(
            $this->credentials($data),
            function ($user, $password) {
                $this->resetPassword($user, $password);
            }
        );

        return $response == Password::PASSWORD_RESET
            ? $this->sendResetResponse($request, $response)
            : $this->sendResetFailedResponse($request, $response);
    }
public function reset(Request $request)
    {
        $data = new PasswordResetData();

        $form = $this->form(new PasswordResetForm($data));
        $form->handleRequest($request);

        if ($form->isNotValid()) {
            return back()->withErrors($form->errors()->all());
        }

        $response = $this->broker()->reset(
            $this->credentials($data),
            function ($user, $password) {
                $this->resetPassword($user, $password);
            }
        );

        return $response == Password::PASSWORD_RESET
            ? $this->sendResetResponse($request, $response)
            : $this->sendResetFailedResponse($request, $response);
    }
public function reset ( Request $ request ) { $ data = new PasswordResetData ( ) ; $ form = $ this -> form ( new PasswordResetForm ( $ data ) ) ; $ form -> handleRequest ( $ request ) ; if ( $ form -> isNotValid ( ) ) { return back ( ) -> withErrors ( $ form -> errors ( ) -> all ( ) ) ; } $ response = $ this -> broker ( ) -> reset ( $ this -> credentials ( $ data ) , function ( $ user , $ password ) { $ this -> resetPassword ( $ user , $ password ) ; } ) ; return $ response == Password :: PASSWORD_RESET ? $ this -> sendResetResponse ( $ request , $ response ) : $ this -> sendResetFailedResponse ( $ request , $ response ) ; }
Handle user password reset request.

@param Request $request

@return \Illuminate\Http\RedirectResponse
Handle user password reset request .