Env
class Env (View source)
Properties
static protected bool | $putenv | Indicates if the putenv adapter is enabled. | |
static protected FactoryInterface|null | $factory | The environment factory instance. | |
static protected VariablesInterface|null | $variables | The environment variables instance. |
Methods
static void | enablePutenv() Enable the putenv adapter. | |
static void | disablePutenv() Disable the putenv adapter. | |
static FactoryInterface | getFactory() Get the environment factory instance. | |
static VariablesInterface | getVariables() Get the environment variables instance. | |
static mixed | get(string $key, mixed $default = null) Gets the value of an environment variable. |
Details
static void enablePutenv()
Enable the putenv adapter.
static void disablePutenv()
Disable the putenv adapter.
static FactoryInterface getFactory()
Get the environment factory instance.
static VariablesInterface getVariables()
Get the environment variables instance.
static mixed get(string $key, mixed $default = null)
Gets the value of an environment variable.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Support/Env.html