Documentation

Authenticate
in package

Table of Contents

$auth  : Factory
The authentication factory instance.
__construct()  : void
Create a new middleware instance.
handle()  : mixed
Handle an incoming request.
authenticate()  : void
Determine if the user is logged in to any of the given guards.

Properties

Methods

__construct()

Create a new middleware instance.

public __construct(Factory $auth) : void
Parameters
$auth : Factory
Return values
void

handle()

Handle an incoming request.

public handle(Request $request, Closure $next, array<string|int, string> ...$guards) : mixed
Parameters
$request : Request
$next : Closure
$guards : array<string|int, string>
Tags
throws
AuthenticationException
Return values
mixed

authenticate()

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

protected authenticate(array<string|int, mixed> $guards) : void
Parameters
$guards : array<string|int, mixed>
Tags
throws
AuthenticationException
Return values
void

Search results