In routes.php
Route::post('/login', ['uses'=> 'Auth\AuthController@postLogin']);
In my AuthController
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
class AuthUserController extends Controller
{
use AuthenticatesAndRegistersUsers, ThrottlesLogins;
-------
protected $maxLoginAttempts = 4;
protected $lockoutTime = 300;
and thats it I am not overriding the post login just letting it use the default.
So, after trying more than 4 times also it's not throttling the request ie no error resonses for throttling. Please help.
Solved it by using the traits in the User model
--
use AuthenticatesAndRegistersUsers, ThrottlesLogins;
--
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.