Gets the current environment name, a setting associated with the current environment, or the
entire configuration array for the current environment.
public static get ( string $name = null ) : mixed | ||
$name | string | The name of the environment setting to retrieve, or the name of an environment, if that environment's entire configuration is to be retrieved. If retrieving the current environment name, `$name` should not be passed. |
return | mixed | If `$name` is unspecified, returns the name of the current environment name as a string (i.e. `'production'`). If an environment name is specified, returns that environment's entire configuration as an array. |