class Authenticate

Properties

protected Factory $auth

The authentication factory instance.

Methods

void
__construct(Factory $auth)

Create a new middleware instance.

mixed
handle(Request $request, Closure $next, string[] ...$guards)

Handle an incoming request.

void
authenticate(array $guards)

Determine if the user is logged in to any of the given guards.

Details

at line 24
void __construct(Factory $auth)

Create a new middleware instance.

Parameters

Factory $auth

Return Value

void

at line 39
mixed handle(Request $request, Closure $next, string[] ...$guards)

Handle an incoming request.

Parameters

Request $request
Closure $next
string[] ...$guards

Return Value

mixed

Exceptions

AuthenticationException

at line 54
protected void authenticate(array $guards)

Determine if the user is logged in to any of the given guards.

Parameters

array $guards

Return Value

void

Exceptions

AuthenticationException