class PasswordBrokerManager implements PasswordBrokerFactory mixin PasswordBroker (View source)

Properties

protected Application $app

The application instance.

protected array $brokers

The array of created "drivers".

Methods

__construct(Application $app)

Create a new PasswordBroker manager instance.

broker(string|null $name = null)

Attempt to get the broker from the local cache.

resolve(string $name)

Resolve the given broker.

createTokenRepository(array $config)

Create a token repository instance based on the given configuration.

array|null
getConfig(string $name)

Get the password broker configuration.

string
getDefaultDriver()

Get the default password broker name.

void
setDefaultDriver(UnitEnum|string $name)

Set the default password broker name.

mixed
__call(string $method, array $parameters)

Dynamically call the default driver instance.

Details

__construct(Application $app)

Create a new PasswordBroker manager instance.

Parameters

Application $app

PasswordBroker broker(string|null $name = null)

Attempt to get the broker from the local cache.

Parameters

string|null $name

Return Value

PasswordBroker

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|null getConfig(string $name)

Get the password broker configuration.

Parameters

string $name

Return Value

array|null

string getDefaultDriver()

Get the default password broker name.

Return Value

string

void setDefaultDriver(UnitEnum|string $name)

Set the default password broker name.

Parameters

UnitEnum|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

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.