class EnvironmentDetector (View source)
| string | detect(Closure $callback, array|null $consoleArgs = null) Detect the application's current environment. | |
| string | detectWebEnvironment(Closure $callback) Set the application environment for a web request. | |
| string | detectConsoleEnvironment(Closure $callback, array $args) Set the application environment from command-line arguments. | |
| string|null | getEnvironmentArgument(array $args) Get the environment argument from the console. | 
Detect the application's current environment.
Set the application environment for a web request.
Set the application environment from command-line arguments.
Get the environment argument from the console.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/8.x/Illuminate/Foundation/EnvironmentDetector.html