laravel / 10 / api / 10.x / illuminate / support / defaultproviders.html

DefaultProviders

class DefaultProviders (View source)

Properties

protected array $providers

The current providers.

Methods

void __construct(array|null $providers = null)

Create a new default provider collection.

DefaultProviders merge(array $providers)

Merge the given providers into the provider collection.

DefaultProviders replace(array $replacements)

Replace the given providers with other providers.

DefaultProviders except(array $providers)

Disable the given providers.

array toArray()

Convert the provider collection to an array.

Details

void __construct(array|null $providers = null)

Create a new default provider collection.

Parameters

array|null $providers

Return Value

void

DefaultProviders merge(array $providers)

Merge the given providers into the provider collection.

Parameters

array $providers

Return Value

DefaultProviders replace(array $replacements)

Replace the given providers with other providers.

Parameters

array $replacements

Return Value

DefaultProviders except(array $providers)

Disable the given providers.

Parameters

array $providers

Return Value

array toArray()

Convert the provider collection to an array.

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Support/DefaultProviders.html