ThrottlesLogins
trait ThrottlesLogins (View source)
Methods
Get the rate limiter instance.
Get the maximum number of attempts to allow.
Get the number of minutes to throttle for.
Details
protected bool
hasTooManyLoginAttempts(Request $request)
Determine if the user has too many failed login attempts.
protected void
incrementLoginAttempts(Request $request)
Increment the login attempts for the user.
protected void
sendLockoutResponse(Request $request)
Redirect the user after determining they are locked out.
protected void
clearLoginAttempts(Request $request)
Clear the login locks for the given user credentials.
protected void
fireLockoutEvent(Request $request)
Fire an event when a lockout occurs.
protected string
throttleKey(Request $request)
Get the throttle key for the given request.
protected RateLimiter
limiter()
Get the rate limiter instance.
int
maxAttempts()
Get the maximum number of attempts to allow.
int
decayMinutes()
Get the number of minutes to throttle for.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.