mercredi 17 juin 2020

why does method reset not exist?

I am trying reset password, using trait ResetsPasswords, and then I got that method:


how will I do that?

1. method reset() does not exist

protected function reset(Request $request) { $request->validate($this->rules(), $this->validationErrorMessage());

    $response = $this->broker()->reset(

        $this->credentials($request), function($user, $password){
            $this->resetPassword($user, $password);
        }
    );

    return $response == Password::PASSWORD_RESET
        ? $this->sendResetResponse($request, $response)
        : $this->sendResetFailedResponse($request, $resposne);
}

2. api.php

Route::post('password/reset', 'Api\ResetPasswordController@reset');



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3dbEcuP
via IFTTT

Aucun commentaire:

Enregistrer un commentaire