class AuthenticateWithBasicAuth (View source)

Properties

protected Factory $auth The guard factory instance.

Methods

void
__construct(Factory $auth)

Create a new middleware instance.

mixed
handle(Request $request, Closure $next, string|null $guard = null, string|null $field = null)

Handle an incoming request.

Details

void __construct(Factory $auth)

Create a new middleware instance.

Parameters

Factory $auth

Return Value

void

mixed handle(Request $request, Closure $next, string|null $guard = null, string|null $field = null)

Handle an incoming request.

Parameters

Request $request
Closure $next
string|null $guard
string|null $field

Return Value

mixed

Exceptions

UnauthorizedHttpException