AuthManager
class AuthManager implements Factory (View source)
Traits
Methods
Create the user provider implementation for the driver.
Attempt to get the guard from the local cache.
Create a session based authentication guard.
Create a token based authentication guard.
Get the default authentication driver name.
Set the default guard driver the factory should serve.
Set the default authentication driver name.
Register a new callback based request guard.
Get the user resolver callback.
Dynamically call the default driver instance.
Details
in CreatesUserProviders at line line 24
UserProvider
createUserProvider(
string $provider)
Create the user provider implementation for the driver.
at line line 64
mixed
guard(
string|null $name = null)
Attempt to get the guard from the local cache.
at line line 121
SessionGuard
createSessionDriver(
string $name,
array $config)
Create a session based authentication guard.
at line line 152
TokenGuard
createTokenDriver(
string $name,
array $config)
Create a token based authentication guard.
at line line 194
void
shouldUse(
string $name)
Set the default guard driver the factory should serve.
at line line 217
$this
viaRequest(
string $driver,
callable $callback)
Register a new callback based request guard.
at line line 244
$this
resolveUsersUsing(
Closure $userResolver)
Set the callback to be used to resolve users.
at line line 258
$this
extend(
string $driver,
Closure $callback)
Register a custom driver creator Closure.
at line line 272
$this
provider(
string $name,
Closure $callback)
Register a custom provider creator Closure.
at line line 286
mixed
__call(
string $method,
array $parameters)
Dynamically call the default driver instance.