class AuthManager implements Factory (View source)
CreatesUserProviders |
UserProvider | createUserProvider(string $provider) Create the user provider implementation for the driver. | from CreatesUserProviders |
void | __construct(Application $app) Create a new Auth manager instance. | |
mixed | guard(string|null $name = null) Attempt to get the guard from the local cache. | |
SessionGuard | createSessionDriver(string $name, array $config) Create a session based authentication guard. | |
TokenGuard | createTokenDriver(string $name, array $config) Create a token based authentication guard. | |
string | getDefaultDriver() Get the default authentication driver name. | |
void | shouldUse(string $name) Set the default guard driver the factory should serve. | |
void | setDefaultDriver(string $name) Set the default authentication driver name. | |
$this | viaRequest(string $driver, callable $callback) Register a new callback based request guard. | |
Closure | userResolver() Get the user resolver callback. | |
$this | resolveUsersUsing(Closure $userResolver) Set the callback to be used to resolve users. | |
$this | extend(string $driver, Closure $callback) Register a custom driver creator Closure. | |
$this | provider(string $name, Closure $callback) Register a custom provider creator Closure. | |
mixed | __call(string $method, array $parameters) Dynamically call the default driver instance. |
Create the user provider implementation for the driver.
Create a new Auth manager instance.
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.
Set the callback to be used to resolve users.
Register a custom driver creator Closure.
Register a custom provider creator Closure.
Dynamically call the default driver instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Auth/AuthManager.html