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

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

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

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →