AuthenticateSession
class AuthenticateSession implements AuthenticatesSessions (View source)
Properties
protected Factory | $auth | The authentication factory implementation. |
|
static protected callable | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
Methods
void
void
string|null
redirectTo(Request $request)
Get the path the user should be redirected to when their session is not authenticated.
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.
Details
void
__construct(Factory $auth)
Create a new middleware instance.
protected void
storePasswordHashInSession(Request $request)
Store the user's current password hash in the session.
protected void
logout(Request $request)
Log the user out of the application.
protected string|null
redirectTo(Request $request)
Get the path the user should be redirected to when their session is not authenticated.
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.