AuthManager
class AuthManager implements Factory (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.
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.
Dynamically call the default driver instance.
Details
in CreatesUserProviders at line 24
UserProvider
createUserProvider(string $provider)
Create the user provider implementation for the driver.
in CreatesUserProviders at line 50
protected DatabaseUserProvider
createDatabaseProvider(array $config)
Create an instance of the database user provider.
in CreatesUserProviders at line 63
protected EloquentUserProvider
createEloquentProvider(array $config)
Create an instance of the Eloquent user provider.
at line 49
void
__construct(Application $app)
Create a new Auth manager instance.
at line 64
mixed
guard(string|null $name = null)
Attempt to get the guard from the local cache.
at line 81
protected Guard|StatefulGuard
resolve(string $name)
Resolve the given guard.
at line 109
protected mixed
callCustomCreator(string $name, array $config)
Call a custom driver creator.
at line 121
SessionGuard
createSessionDriver(string $name, array $config)
Create a session based authentication guard.
at line 152
TokenGuard
createTokenDriver(string $name, array $config)
Create a token based authentication guard.
at line 173
protected array
getConfig(string $name)
Get the guard configuration.
at line 183
string
getDefaultDriver()
Get the default authentication driver name.
at line 194
void
shouldUse(string $name)
Set the default guard driver the factory should serve.
at line 211
void
setDefaultDriver(string $name)
Set the default authentication driver name.
at line 223
$this
viaRequest(string $driver, callable $callback)
Register a new callback based request guard.
at line 250
$this
resolveUsersUsing(Closure $userResolver)
Set the callback to be used to resolve users.
at line 264
$this
extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
at line 278
$this
provider(string $name, Closure $callback)
Register a custom provider creator Closure.
at line 292
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.