title: Handeling hasTooManyLoginAttempts in laravel?
body: <p>The user has surpassed their alloed maximum of login attempts will key this by the username and the IP address of the client making,I use trait AuthenticatesUsers pulled in.
  you look inside of mentioned trait, you will see another trait ThrottlesLogins pulled in.</p>
  
  <p>Auth congfig:</p>
  
  <pre><code>'guards' =&gt; [
          'web' =&gt; [
              'driver' =&gt; 'session',
              'provider' =&gt; 'users',
          ],
          'api' =&gt; [
              'driver' =&gt; 'passport',
              'provider' =&gt; 'users',
          ],
          'admin-web' =&gt; [
              'driver' =&gt; 'session',
              'provider' =&gt; 'admins',
          ],
          'admin-api' =&gt; [
              'driver' =&gt; 'passport',
              'provider' =&gt; 'admins',
          ],
      ],
  </code></pre>
  
  <p>Authcontroller:</p>
  
  <pre><code> class AuthController extends Controller
      {
  
       use ThrottlesLogins;
  
    public function login(Request $request)
          {
              $method = __FUNCTION__;
  
              //set validations
              $validator = Validator::make($request-&gt;all(), [
                  'email' =&gt; 'required|string|email',
                  'password' =&gt; 'required|string|min:6',
              ]);
              if ($validator-&gt;fails()) {
                  return (new FailedServerResponse($this-&gt;controller, $method, $this-&gt;errorType['validation'], $validator-&gt;errors()))-&gt;show();
              }
  
              $admin = Admin::where('email', $request-&gt;email)-&gt;first();
  
              if ( $this-&gt;hasTooManyLoginAttempts($request)) {
                 $this-&gt;fireLockoutEvent($request);
                 return $this-&gt;sendLockoutResponse($request);
              }
  
              if (Auth::guard('admin-web')-&gt;attempt(['email' =&gt; $request-&gt;email, 'password' =&gt; $request-&gt;password, 'is_active' =&gt; 1], true)) {
                  try {
                      $token = $admin-&gt;createToken('register admin')-&gt;accessToken;
                  } catch (\Exception $e) {
                      return (new FailedServerResponse($this-&gt;controller, $method, $this-&gt;errorType['token']))-&gt;show();
                  }
  
                  return $token;
                  //success and everything is ok
                  $extra = ['token' =&gt; $token, 'is_register' =&gt; true];
                  return (new UserResponse($admin-&gt;load('userActivities', 'addresses.city.province', 'wallets', 'userGalleries'), $actionName, $extra))-&gt;withPrimaryLayout();
  
              } else {
                  return (new FailedServerResponse($this-&gt;controller, $method, $this-&gt;errorType['notFound']))-&gt;show();
              }
          }
  
       protected function hasTooManyLoginAttempts(Request $request)
          {
              $attempts = 2;
              $lockoutMinites = 10;
              return $this-&gt;limiter()-&gt;tooManyAttempts(
                  $this-&gt;throttleKey($request), $attempts, $lockoutMinites
              );
          }
  </code></pre>
  
  <p>hasTooManyLoginAttempts not working. can you help me?</p>