class Auth (View source)

Methods

static GuardContract|null
configure(array $config)

Configure Auth system

static GuardContract|null
getInstance()

Get Auth Instance

static GuardContract
guard(string|null $guard = null)

Check if user is authenticated

static GuardContract
__callStatic(string $method, array $params)

__callStatic

Details

static GuardContract|null configure(array $config)

Configure Auth system

Parameters

array $config

Return Value

GuardContract|null

Exceptions

AuthenticationException

static GuardContract|null getInstance()

Get Auth Instance

Return Value

GuardContract|null

static GuardContract guard(string|null $guard = null)

Check if user is authenticated

Parameters

string|null $guard

Return Value

GuardContract

Exceptions

AuthenticationException

static GuardContract __callStatic(string $method, array $params)

__callStatic

Parameters

string $method
array $params

Return Value

GuardContract

Exceptions

ErrorException