Documentation

ThrottlesLogins

Table of Contents

decayMinutes()  : int
Get the number of minutes to throttle for.
maxAttempts()  : int
Get the maximum number of attempts to allow.
clearLoginAttempts()  : void
Clear the login locks for the given user credentials.
fireLockoutEvent()  : void
Fire an event when a lockout occurs.
hasTooManyLoginAttempts()  : bool
Determine if the user has too many failed login attempts.
incrementLoginAttempts()  : void
Increment the login attempts for the user.
limiter()  : RateLimiter
Get the rate limiter instance.
sendLockoutResponse()  : void
Redirect the user after determining they are locked out.
throttleKey()  : string
Get the throttle key for the given request.

Methods

decayMinutes()

Get the number of minutes to throttle for.

public decayMinutes() : int
Return values
int

maxAttempts()

Get the maximum number of attempts to allow.

public maxAttempts() : int
Return values
int

clearLoginAttempts()

Clear the login locks for the given user credentials.

protected clearLoginAttempts(Request $request) : void
Parameters
$request : Request
Return values
void

fireLockoutEvent()

Fire an event when a lockout occurs.

protected fireLockoutEvent(Request $request) : void
Parameters
$request : Request
Return values
void

hasTooManyLoginAttempts()

Determine if the user has too many failed login attempts.

protected hasTooManyLoginAttempts(Request $request) : bool
Parameters
$request : Request
Return values
bool

incrementLoginAttempts()

Increment the login attempts for the user.

protected incrementLoginAttempts(Request $request) : void
Parameters
$request : Request
Return values
void

throttleKey()

Get the throttle key for the given request.

protected throttleKey(Request $request) : string
Parameters
$request : Request
Return values
string

Search results