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 can 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);
}
  1. api.php
Route::post('password/reset', 'Api\ResetPasswordController@reset');


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire