class Illuminate / Session / Middleware / AuthenticateSession

AuthenticateSession

Implements

Properties

protected

$auth Factory

The authentication factory implementation.

Default: null

Methods

public

__construct ( Factory $auth ) : void

Create a new middleware instance.

Parameters

public

handle ( $request , Closure $next ) : mixed

Handle an incoming request.

Parameters

protected

storePasswordHashInSession ( $request ) : void

Store the user's current password hash in the session.

Parameters

protected

logout ( $request ) : void

Log the user out of the application.

Parameters

protected

guard ( ) : Factory |Guard

Get the guard instance that should be used by the middleware.

protected

redirectTo ( Request $request ) : string|null

Get the path the user should be redirected to when their session is not autheneticated.

Parameters