I work in Laravel 7
I adjust loginController as needed; maxAttempts and decayMinutes
public function maxAttempts()
{
return General::first()->max_attempts;
}
public function decayMinutes()
{
return General::first()->decay_minutes;
}
How to ban users for more than maxAttempts
example => maxAttempts = 4
I want ban user for 5 failed attempts
$user->is_block = true
I tested it and it was right.