Home > Software design >  How to solve probleme : "Too many attempts" in laravel 9 api
How to solve probleme : "Too many attempts" in laravel 9 api

Time:08-28

I'm working on a login system in laravel but found this problem message: "message": "Too Many Attempts.", "exception": "Illuminate\Http\Exceptions\ThrottleRequestsException",

The code I'm using:

Route::post('auth/login', 'AuthController@login');
Route::post('reset-password', 'AuthController@sendPasswordResetLink');
Route::post('reset/password', 'AuthController@callResetPassword');

Route::group(['middleware' => 'auth:api'], function () {
    Route::get('auth/user', 'AuthController@user');
}

CodePudding user response:

Problem solved, I tried this commands and it worked:

php artisan cache:clear,
php artisan config:clear,
  • Related