class AuthenticateSession implements AuthenticatesSessions (View source)
| protected Factory | $auth | The authentication factory implementation. | |
| static protected callable | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
| void | __construct(Factory $auth)
Create a new middleware instance. | |
| mixed | handle(Request $request, Closure $next)
Handle an incoming request. | |
| void | storePasswordHashInSession(Request $request)
Store the user's current password hash in the session. | |
| void | logout(Request $request)
Log the user out of the application. | |
| Factory|Guard | guard()
Get the guard instance that should be used by the middleware. | |
| 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. |
Create a new middleware instance.
Store the user's current password hash in the session.
Log the user out of the application.
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Session/Middleware/AuthenticateSession.html