ThrottlesLogins

trait ThrottlesLogins (View source)

Methods

bool hasTooManyLoginAttempts(Request $request)

Determine if the user has too many failed login attempts.

int incrementLoginAttempts(Request $request)

Increment the login attempts for the user.

RedirectResponse 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.

RateLimiter limiter()

Get the rate limiter instance.

Details

protected bool hasTooManyLoginAttempts(Request $request)

Determine if the user has too many failed login attempts.

Parameters

Request $request

Return Value

bool

protected int incrementLoginAttempts(Request $request)

Increment the login attempts for the user.

Parameters

Request $request

Return Value

int

protected RedirectResponse sendLockoutResponse(Request $request)

Redirect the user after determining they are locked out.

Parameters

Request $request

Return Value

RedirectResponse

protected void clearLoginAttempts(Request $request)

Clear the login locks for the given user credentials.

Parameters

Request $request

Return Value

void

protected void fireLockoutEvent(Request $request)

Fire an event when a lockout occurs.

Parameters

Request $request

Return Value

void

protected string throttleKey(Request $request)

Get the throttle key for the given request.

Parameters

Request $request

Return Value

string

protected RateLimiter limiter()

Get the rate limiter instance.

Return Value

RateLimiter

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Auth/ThrottlesLogins.html