I'm using ThrottleRequest to throttle login attempts. In Kendler.php i have
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
and my route in web.php
Route::post('login', ['middleware' => 'throttle:3,1', 'uses' => 'Auth\LoginController@authenticate']);
When i login fourth time, it return status 429 with message 'TOO MANY REQUESTS.'
(by default i guess)
But i just want to return error message, somethings like:
return redirect('/login')
->withErrors(['errors' => 'xxxxxxx']);
Anybody help me! THANK YOU!