If you use default login feature, just add this method to your App\User
protected function hasTooManyLoginAttempts(Request $request)
{
$maxLoginAttempts = 3;
$lockoutTime = 1; // In minutes
return $this->limiter()->tooManyAttempts(
$this->throttleKey($request), $maxLoginAttempts, $lockoutTime
);
}
Reference: https://mul14.wordpress.com/2016/12/25/mengatur-maximum-login-di-laravel-5-3/
mul14 said:
If you use default login feature, just add this method to your
App\Userprotected function hasTooManyLoginAttempts(Request $request) { $maxLoginAttempts = 3; $lockoutTime = 1; // In minutes return $this->limiter()->tooManyAttempts( $this->throttleKey($request), $maxLoginAttempts, $lockoutTime ); }Reference: https://mul14.wordpress.com/2016/12/25/mengatur-maximum-login-di-laravel-5-3/
You have to add this method to Auth\LoginController.php in Laravel 5.3
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.