trait CreatesUserProviders (View source)

Properties

protected array $customProviderCreators The registered custom provider creators.

Methods

createUserProvider(string|null $provider = null)

Create the user provider implementation for the driver.

array|null
getProviderConfiguration(string|null $provider)

Get the user provider configuration.

createDatabaseProvider(array $config)

Create an instance of the database user provider.

createEloquentProvider(array $config)

Create an instance of the Eloquent user provider.

string
getDefaultUserProvider()

Get the default user provider name.

Details

UserProvider|null createUserProvider(string|null $provider = null)

Create the user provider implementation for the driver.

Parameters

string|null $provider

Return Value

UserProvider|null

Exceptions

InvalidArgumentException

protected array|null getProviderConfiguration(string|null $provider)

Get the user provider configuration.

Parameters

string|null $provider

Return Value

array|null

protected DatabaseUserProvider createDatabaseProvider(array $config)

Create an instance of the database user provider.

Parameters

array $config

Return Value

DatabaseUserProvider

protected EloquentUserProvider createEloquentProvider(array $config)

Create an instance of the Eloquent user provider.

Parameters

array $config

Return Value

EloquentUserProvider

string getDefaultUserProvider()

Get the default user provider name.

Return Value

string