trait ThrottlesLogins

Methods

bool
hasTooManyLoginAttempts(Request $request)

Determine if the user has too many failed login attempts.

void
incrementLoginAttempts(Request $request)

Increment the login attempts for the user.

sendLockoutResponse(Request $request)

Redirect the user after determining they are locked out.

void
clearLoginAttempts(Request $request)

Clear the login locks for the given user credentials.

void
fireLockoutEvent(Request $request)

Fire an event when a lockout occurs.

string
throttleKey(Request $request)

Get the throttle key for the given request.

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.

Details

at line 19
protected bool hasTooManyLoginAttempts(Request $request)

Determine if the user has too many failed login attempts.

Parameters

Request $request

Return Value

bool

at line 32
protected void incrementLoginAttempts(Request $request)

Increment the login attempts for the user.

Parameters

Request $request

Return Value

void

at line 43
protected RedirectResponse sendLockoutResponse(Request $request)

Redirect the user after determining they are locked out.

Parameters

Request $request

Return Value

RedirectResponse

at line 68
protected void clearLoginAttempts(Request $request)

Clear the login locks for the given user credentials.

Parameters

Request $request

Return Value

void

at line 79
protected void fireLockoutEvent(Request $request)

Fire an event when a lockout occurs.

Parameters

Request $request

Return Value

void

at line 90
protected string throttleKey(Request $request)

Get the throttle key for the given request.

Parameters

Request $request

Return Value

string

at line 100
protected RateLimiter limiter()

Get the rate limiter instance.

Return Value

RateLimiter

at line 110
int maxAttempts()

Get the maximum number of attempts to allow.

Return Value

int

at line 120
int decayMinutes()

Get the number of minutes to throttle for.

Return Value

int