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
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
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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.