W3cubDocs

/Laravel 4.2

EnvironmentVariables

class EnvironmentVariables (View source)

PHP $_ENV loader for protecting sensitive configuration options.

Inspired by the wonderful "Dotenv" library by Vance Lucas.

Methods

void __construct(EnvironmentVariablesLoaderInterface $loader)

The server environment instance.

load(string $environment = null)

Load the server variables for a given environment.

Details

void __construct(EnvironmentVariablesLoaderInterface $loader)

The server environment instance.

Parameters

EnvironmentVariablesLoaderInterface $loader

Return Value

void

load(string $environment = null)

Load the server variables for a given environment.

Parameters

string $environment

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Config/EnvironmentVariables.html