AuthManager
class AuthManager implements Factory mixin Guard mixin StatefulGuard (View source)
Traits
Properties
protected array | $customProviderCreators | The registered custom provider creators. |
from CreatesUserProviders |
protected Application | $app | The application instance. |
|
protected array | $customCreators | The registered custom driver creators. |
|
protected array | $guards | The array of created "drivers". |
|
protected Closure | $userResolver | The user resolver shared by various services. |
Methods
Create the user provider implementation for the driver.
Get the user provider configuration.
Create an instance of the database user provider.
Create an instance of the Eloquent user provider.
Attempt to get the guard from the local cache.
Resolve the given guard.
Call a custom driver creator.
Create a session based authentication guard.
Create a token based authentication guard.
Get the guard configuration.
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.
Determines if any guards have already been resolved.
Forget all of the resolved guard instances.
Dynamically call the default driver instance.
Details
UserProvider|null
createUserProvider(string|null $provider = null)
Create the user provider implementation for the driver.
protected array|null
getProviderConfiguration(string|null $provider)
Get the user provider configuration.
protected DatabaseUserProvider
createDatabaseProvider(array $config)
Create an instance of the database user provider.
protected EloquentUserProvider
createEloquentProvider(array $config)
Create an instance of the Eloquent user provider.
SessionGuard
createSessionDriver(string $name, array $config)
Create a session based authentication guard.
TokenGuard
createTokenDriver(string $name, array $config)
Create a token based authentication guard.