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 27
__construct(Factory $auth)
Create a new middleware instance.
at line 70
protected void
storePasswordHashInSession(Request $request)
Store the user's current password hash in the session.
at line 92
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 103
protected void
logout(Request $request)
Log the user out of the application.
at line 119
protected Factory|Guard
guard()
Get the guard instance that should be used by the middleware.
at line 127
protected string|null
redirectTo(Request $request)
Get the path the user should be redirected to when their session is not authenticated.
at line 142
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.
The callback persists in a static property for the worker lifetime and runs on every subsequent session-mismatch.
at line 151
static void
flushState()
Flush all static state.