AuthenticatesUsers
trait AuthenticatesUsers (View source)
Traits
RedirectsUsers |
Methods
string | redirectPath() Get the post register / login redirect path. | from RedirectsUsers |
Response | getLogin() Show the application login form. | |
Response | showLoginForm() Show the application login form. | |
Response | postLogin(Request $request) Handle a login request to the application. | |
Response | login(Request $request) Handle a login request to the application. | |
void | validateLogin(Request $request) Validate the user login request. | |
Response | handleUserWasAuthenticated(Request $request, bool $throttles) Send the response after the user was authenticated. | |
Response | sendFailedLoginResponse(Request $request) Get the failed login response instance. | |
string | getFailedLoginMessage() Get the failed login message. | |
array | getCredentials(Request $request) Get the needed authorization credentials from the request. | |
Response | getLogout() Log the user out of the application. | |
Response | logout() Log the user out of the application. | |
guestMiddleware() Get the guest middleware for the application. | ||
string | loginUsername() Get the login username to be used by the controller. | |
bool | isUsingThrottlesLoginsTrait() Determine if the class is using the ThrottlesLogins trait. | |
string|null | getGuard() Get the guard to be used during authentication. |
Details
string redirectPath()
Get the post register / login redirect path.
Response getLogin()
Show the application login form.
Response showLoginForm()
Show the application login form.
protected void validateLogin(Request $request)
Validate the user login request.
protected Response handleUserWasAuthenticated(Request $request, bool $throttles)
Send the response after the user was authenticated.
protected Response sendFailedLoginResponse(Request $request)
Get the failed login response instance.
protected string getFailedLoginMessage()
Get the failed login message.
protected array getCredentials(Request $request)
Get the needed authorization credentials from the request.
Response getLogout()
Log the user out of the application.
Response logout()
Log the user out of the application.
guestMiddleware()
Get the guest middleware for the application.
string loginUsername()
Get the login username to be used by the controller.
protected bool isUsingThrottlesLoginsTrait()
Determine if the class is using the ThrottlesLogins trait.
protected string|null getGuard()
Get the guard to be used during authentication.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Foundation/Auth/AuthenticatesUsers.html