AuthManager
Implements
Uses
Properties
$customCreators array
The registered custom driver creators.
$guards array
The array of created "drivers".
$userResolver Closure
The user resolver shared by various services.
Determines the default user for Gate, Request, and the Authenticatable contract.
Methods
guard ( $name ) : Guard |StatefulGuard
Attempt to get the guard from the local cache.
Parameters
- $name string|null
callCustomCreator ( $name , array $config ) : mixed
Call a custom driver creator.
Parameters
- $name string
- $config array
createSessionDriver ( $name , $config ) : SessionGuard
Create a session based authentication guard.
Parameters
- $name string
- $config array
createTokenDriver ( $name , $config ) : TokenGuard
Create a token based authentication guard.
Parameters
- $name string
- $config array
getConfig ( $name ) : array
Get the guard configuration.
Parameters
- $name string
getDefaultDriver ( ) : string
Get the default authentication driver name.
shouldUse ( $name ) : void
Set the default guard driver the factory should serve.
Parameters
- $name string
setDefaultDriver ( $name ) : void
Set the default authentication driver name.
Parameters
- $name string
viaRequest ( $driver , callable $callback ) : $this
Register a new callback based request guard.
Parameters
- $driver string
- $callback callable
resolveUsersUsing ( Closure $userResolver ) : $this
Set the callback to be used to resolve users.
Parameters
- $userResolver Closure
extend ( $driver , Closure $callback ) : $this
Register a custom driver creator Closure.
Parameters
- $driver string
- $callback Closure
provider ( $name , Closure $callback ) : $this
Register a custom provider creator Closure.
Parameters
- $name string
- $callback Closure
hasResolvedGuards ( ) : bool
Determines if any guards have already been resolved.
forgetGuards ( ) : $this
Forget all of the resolved guard instances.
setApplication ( $app ) : $this
Set the application instance used by the manager.
Parameters
- $app Application
__call ( $method , $parameters ) : mixed
Dynamically call the default driver instance.
Parameters
- $method string
- $parameters array