PHP-025 / Intermediate
No login rate limiting
Why is this a problem?
Automated guessing attacks, including credential stuffing, are possible.
How to fix it
php
Route::post('/login', [AuthController::class, 'login'])->middleware('throttle:5,1');
// Alternatively use RateLimiter::for to limit the IP/email combination and lock on repeated failures