class AuthenticateSession (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.

guard()

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

Details

void __construct(Factory $auth)

Create a new middleware instance.

Parameters

Factory $auth

Return Value

void

mixed handle(Request $request, Closure $next)

Handle an incoming request.

Parameters

Request $request
Closure $next

Return Value

mixed

protected void storePasswordHashInSession(Request $request)

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

Parameters

Request $request

Return Value

void

protected void logout(Request $request)

Log the user out of the application.

Parameters

Request $request

Return Value

void

Exceptions

AuthenticationException

protected Factory|Guard guard()

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

Return Value

Factory|Guard