On this page
AuthenticateSession
class AuthenticateSession implements AuthenticatesSessions (View source)
Properties
| protected Factory | $auth | The authentication factory implementation. |
Methods
| 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 autheneticated. |
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 autheneticated.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Session/Middleware/AuthenticateSession.html