I am trying reset password, using trait ResetsPasswords, and then I got that method.
How can I do that?
- 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);
}
api.php
Route::post('password/reset', 'Api\ResetPasswordController@reset');
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire