class LoadConfiguration (View source)

Properties

static protected Application): array<array-key, mixed>|null $alwaysUseConfig

The closure that resolves the permanent, static configuration if applicable.

Methods

void
bootstrap(Application $app)

Bootstrap the given application.

void
loadConfigurationFiles(Application $app, Repository $repository)

Load the configuration items from all of the files.

array
loadConfigurationFile(Repository $repository, string $name, string $path, array $base)

Load the given configuration file.

array
mergeableOptions(string $name)

Get the options within the configuration file that should be merged again.

array
getConfigurationFiles(Application $app)

Get all of the configuration files for the application.

string
getNestedDirectory(SplFileInfo $file, string $configPath)

Get the configuration file nesting path.

array
getBaseConfiguration()

Get the base configuration files.

static void
alwaysUse(Closure|null $alwaysUseConfig)

Set a callback to return the permanent, static configuration values.

Details

void bootstrap(Application $app)

Bootstrap the given application.

Parameters

Application $app

Return Value

void

protected void loadConfigurationFiles(Application $app, Repository $repository)

Load the configuration items from all of the files.

Parameters

Application $app
Repository $repository

Return Value

void

Exceptions

Exception

protected array loadConfigurationFile(Repository $repository, string $name, string $path, array $base)

Load the given configuration file.

Parameters

Repository $repository
string $name
string $path
array $base

Return Value

array

protected array mergeableOptions(string $name)

Get the options within the configuration file that should be merged again.

Parameters

string $name

Return Value

array

protected array getConfigurationFiles(Application $app)

Get all of the configuration files for the application.

Parameters

Application $app

Return Value

array

protected string getNestedDirectory(SplFileInfo $file, string $configPath)

Get the configuration file nesting path.

Parameters

SplFileInfo $file
string $configPath

Return Value

string

protected array getBaseConfiguration()

Get the base configuration files.

Return Value

array

static void alwaysUse(Closure|null $alwaysUseConfig)

Set a callback to return the permanent, static configuration values.

Parameters

Closure|null $alwaysUseConfig

Return Value

void

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.