AuthenticatesUsers
trait AuthenticatesUsers (View source)
Traits
Methods
Show the application's login form.
Get the login username to be used by the controller.
Get the guard to be used during authentication.
Details
string
redirectPath()
Get the post register / login redirect path.
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.
Response
showLoginForm()
Show the application's login form.
RedirectResponse|Response|JsonResponse
login(Request $request)
Handle a login request to the application.
protected void
validateLogin(Request $request)
Validate the user login request.
protected bool
attemptLogin(Request $request)
Attempt to log the user into the application.
protected array
credentials(Request $request)
Get the needed authorization credentials from the request.
protected Response
sendLoginResponse(Request $request)
Send the response after the user was authenticated.
protected mixed
authenticated(Request $request, mixed $user)
The user has been authenticated.
protected Response
sendFailedLoginResponse(Request $request)
Get the failed login response instance.
string
username()
Get the login username to be used by the controller.
protected mixed
loggedOut(Request $request)
The user has logged out of the application.
protected StatefulGuard
guard()
Get the guard to be used during authentication.