W3cubDocs

/Laravel 5.8

CreatesUserProviders

trait CreatesUserProviders (View source)

Properties

protected array $customProviderCreators The registered custom provider creators.

Methods

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

Create the user provider implementation for the driver.

array|null getProviderConfiguration(string|null $provider)

Get the user provider configuration.

DatabaseUserProvider createDatabaseProvider(array $config)

Create an instance of the database user provider.

EloquentUserProvider 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

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