Home Laravel How can we increase throttle lockout time and max Login Attempts in Laravel?

How can we increase throttle lockout time and max Login Attempts in Laravel?

by Shahriar Sagor

Today now in this post i will talk about How can we increase throttle lockout time and max Login Attempts in Laravel? If we are implement throttle in our laravel application and if we want to increase the lockout time or the max Login Attempts then we can do it by using laravel method overwrite.

So now in this example i will show with you how to increase the throttle lockout time and also max Login Attempts. Just we have to add two method in our AuthController controller file.

Let’s start and copy this two method and paste on our AuthController controller file and check this.

private function lockoutTime() 
{
    return property_exists($this, 'lockoutTime') ? $this->lockoutTime : 8;
}
protected function maxLoginAttempts()
{
    return property_exists($this, 'maxLoginAttempts') ? $this->maxLoginAttempts : 6;
}

Read Also : Laravel 8 Mobile Number Verification Tutorial

Thanks for read. I hope it help you. For more you can follow us on facebook

close

You may also like