class Env (View source)
| static protected bool | $putenv | Indicates if the putenv adapter is enabled. | |
| static protected RepositoryInterface|null | $repository | The environment repository instance. |
| static void | enablePutenv()
Enable the putenv adapter. | |
| static void | disablePutenv()
Disable the putenv adapter. | |
| static RepositoryInterface | getRepository()
Get the environment repository instance. | |
| static mixed | get(string $key, mixed $default = null)
Get the value of an environment variable. | |
| static mixed | getOrFail(string $key)
Get the value of a required environment variable. | |
| static Option|Some | getOption(string $key)
Get the possible option for this environment variable. |
Enable the putenv adapter.
Disable the putenv adapter.
Get the environment repository instance.
Get the value of an environment variable.
Get the value of a required environment variable.
Get the possible option for this environment variable.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Support/Env.html