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
Validate the password hash against the stored value.
Get the path the user should be redirected to when their session is not authenticated.
Specify the callback that should be used to generate the redirect path.
Details
__construct(Factory $auth)
Create a new middleware instance.
protected void
storePasswordHashInSession(Request $request)
Store the user's current password hash in the session.
protected bool
validatePasswordHash(string $passwordHash, string $storedValue)
Validate the password hash against the stored value.
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.