How to increase throttle lockout time and max Login Attempts in Laravel 5?

By Hardik Savani | June 2, 2016 | | 37493 Viewer | Category : Laravel


you implement throttle in you laravel 5 application and you want to increase lockout time or max Login Attempts then you can do it using laravel method overwrite. In this example i will show you how to increase throttle lockout time and max Login Attempts. you have to just add two method in your AuthController controller file. Let's copy this two method and paste on your AuthController controller file and check.

private function lockoutTime()

{

return property_exists($this, 'lockoutTime') ? $this->lockoutTime : 8;

}


protected function maxLoginAttempts()

{

return property_exists($this, 'maxLoginAttempts') ? $this->maxLoginAttempts : 6;

}



Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.