AuthenticatesAndRegistersUsers

trait AuthenticatesAndRegistersUsers (View source)

Traits

AuthenticatesUsers
RegistersUsers
RedirectsUsers
RedirectsUsers

Methods

string redirectPath()

Get the post register / login redirect path.

from RedirectsUsers
Response getLogin()

Show the application login form.

from AuthenticatesUsers
Response postLogin(Request $request)

Handle a login request to the application.

from AuthenticatesUsers
Response handleUserWasAuthenticated(Request $request, bool $throttles)

Send the response after the user was authenticated.

from AuthenticatesUsers
array getCredentials(Request $request)

Get the needed authorization credentials from the request.

from AuthenticatesUsers
string getFailedLoginMessage()

Get the failed login message.

from AuthenticatesUsers
Response getLogout()

Log the user out of the application.

from AuthenticatesUsers
string loginPath()

Get the path to the login route.

from AuthenticatesUsers
string loginUsername()

Get the login username to be used by the controller.

from AuthenticatesUsers
bool isUsingThrottlesLoginsTrait()

Determine if the class is using the ThrottlesLogins trait.

from AuthenticatesUsers
Response getRegister()

Show the application registration form.

from RegistersUsers
Response postRegister(Request $request)

Handle a registration request for the application.

from RegistersUsers

Details

string redirectPath()

Get the post register / login redirect path.

Return Value

string

Response getLogin()

Show the application login form.

Return Value

Response

Response postLogin(Request $request)

Handle a login request to the application.

Parameters

Request $request

Return Value

Response

protected Response handleUserWasAuthenticated(Request $request, bool $throttles)

Send the response after the user was authenticated.

Parameters

Request $request
bool $throttles

Return Value

Response

protected array getCredentials(Request $request)

Get the needed authorization credentials from the request.

Parameters

Request $request

Return Value

array

protected string getFailedLoginMessage()

Get the failed login message.

Return Value

string

Response getLogout()

Log the user out of the application.

Return Value

Response

string loginPath()

Get the path to the login route.

Return Value

string

string loginUsername()

Get the login username to be used by the controller.

Return Value

string

protected bool isUsingThrottlesLoginsTrait()

Determine if the class is using the ThrottlesLogins trait.

Return Value

bool

Response getRegister()

Show the application registration form.

Return Value

Response

Response postRegister(Request $request)

Handle a registration request for the application.

Parameters

Request $request

Return Value

Response

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