class CurrentUser extends Authenticated (View source)

Methods

__construct(string|null $guard = null)

Create a new class instance.

static Authenticatable|null
resolve(Authenticated $attribute, Container $container)

Resolve the currently authenticated user.

Details

__construct(string|null $guard = null)

Create a new class instance.

Parameters

string|null $guard

static Authenticatable|null resolve(Authenticated $attribute, Container $container)

Resolve the currently authenticated user.

Parameters

Authenticated $attribute
Container $container

Return Value

Authenticatable|null