AuthenticateSession
class AuthenticateSession implements AuthenticatesSessions
Properties
| static protected null|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.
Flush all static state.
Details
at line 26
__construct(Factory $auth)
Create a new middleware instance.
at line 69
protected void
storePasswordHashInSession(Request $request)
Store the user's current password hash in the session.
at line 91
protected bool
validatePasswordHash(string $passwordHash, mixed $storedValue)
Validate the password hash against the stored value.
Only HMAC artifacts are valid. Custom guards must provide hashPasswordForCookie(); the raw-hash and missing-method fallbacks are intentionally omitted.
at line 102
protected void
logout(Request $request)
Log the user out of the application.
at line 118
protected Factory|Guard
guard()
Get the guard instance that should be used by the middleware.
at line 126
protected string|null
redirectTo(Request $request)
Get the path the user should be redirected to when their session is not authenticated.
at line 141
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.
Boot-only. The callback persists in a static property for the worker lifetime and runs on every subsequent session-mismatch.
at line 149
static void
flushState()
Flush all static state.