class AuthenticateWithBasicAuth

Methods

__construct(Factory $auth)

Create a new middleware instance.

static string
using(string|null $guard = null, string|null $field = null)

Specify the guard and field for the middleware.

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

Handle an incoming request.

Details

at line 18
__construct(Factory $auth)

Create a new middleware instance.

Parameters

Factory $auth

at line 26
static string using(string|null $guard = null, string|null $field = null)

Specify the guard and field for the middleware.

Parameters

string|null $guard
string|null $field

Return Value

string

at line 36
Response 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

Response

Exceptions

UnauthorizedHttpException