AuthenticateSession
class AuthenticateSession implements AuthenticatesSessions (View source)
Properties
| protected Factory | $auth | The authentication factory implementation. |
Methods
void
void
string|null
redirectTo(Request $request)
Get the path the user should be redirected to when their session is not authenticated.
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.
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.