class Auth implements ContextualAttribute (View source)

Methods

__construct(string|null $guard = null)

Create a new class instance.

resolve(Auth $attribute, Container $container)

Resolve the authentication guard.

Details

__construct(string|null $guard = null)

Create a new class instance.

Parameters

string|null $guard

static Guard|StatefulGuard resolve(Auth $attribute, Container $container)

Resolve the authentication guard.

Parameters

Auth $attribute
Container $container

Return Value

Guard|StatefulGuard