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
$auth
The authentication factory instance.
protected
Factory
$auth
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
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>