W3cubDocs

/Laravel 5.8

PasswordBrokerManager

class PasswordBrokerManager implements PasswordBrokerFactory (View source)

Properties

protected Application $app The application instance.
protected array $brokers The array of created "drivers".

Methods

void __construct(Application $app)

Create a new PasswordBroker manager instance.

mixed broker(string|null $name = null)

Attempt to get the broker from the local cache.

PasswordBroker resolve(string $name)

Resolve the given broker.

TokenRepositoryInterface createTokenRepository(array $config)

Create a token repository instance based on the given configuration.

array getConfig(string $name)

Get the password broker configuration.

string getDefaultDriver()

Get the default password broker name.

void setDefaultDriver(string $name)

Set the default password broker name.

mixed __call(string $method, array $parameters)

Dynamically call the default driver instance.

Details

void __construct(Application $app)

Create a new PasswordBroker manager instance.

Parameters

Application $app

Return Value

void

mixed broker(string|null $name = null)

Attempt to get the broker from the local cache.

Parameters

string|null $name

Return Value

mixed

protected PasswordBroker resolve(string $name)

Resolve the given broker.

Parameters

string $name

Return Value

PasswordBroker

Exceptions

InvalidArgumentException

protected TokenRepositoryInterface createTokenRepository(array $config)

Create a token repository instance based on the given configuration.

Parameters

array $config

Return Value

TokenRepositoryInterface

protected array getConfig(string $name)

Get the password broker configuration.

Parameters

string $name

Return Value

array

string getDefaultDriver()

Get the default password broker name.

Return Value

string

void setDefaultDriver(string $name)

Set the default password broker name.

Parameters

string $name

Return Value

void

mixed __call(string $method, array $parameters)

Dynamically call the default driver instance.

Parameters

string $method
array $parameters

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Auth/Passwords/PasswordBrokerManager.html