Documentation

AuthenticatesUsers

Table of Contents

login()  : RedirectResponse|Response|JsonResponse
Handle a login request to the application.
logout()  : Response
Log the user out of the application.
showLoginForm()  : Response
Show the application's login form.
username()  : string
Get the login username to be used by the controller.
attemptLogin()  : bool
Attempt to log the user into the application.
authenticated()  : mixed
The user has been authenticated.
credentials()  : array<string|int, mixed>
Get the needed authorization credentials from the request.
guard()  : StatefulGuard
Get the guard to be used during authentication.
sendFailedLoginResponse()  : Response
Get the failed login response instance.
sendLoginResponse()  : Response
Send the response after the user was authenticated.
validateLogin()  : void
Validate the user login request.

Methods

username()

Get the login username to be used by the controller.

public username() : string
Return values
string

attemptLogin()

Attempt to log the user into the application.

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

authenticated()

The user has been authenticated.

protected authenticated(Request $request, mixed $user) : mixed
Parameters
$request : Request
$user : mixed
Return values
mixed

credentials()

Get the needed authorization credentials from the request.

protected credentials(Request $request) : array<string|int, mixed>
Parameters
$request : Request
Return values
array<string|int, mixed>

validateLogin()

Validate the user login request.

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

Search results