detect()
detect(\Closure $callback, string[]|null $consoleArgs = null) : string
Detect the application's current environment.
Parameters
\Closure | $callback | Holds the callback to use for detecting environment. |
string[]|null | $consoleArgs | Holds an array of console arguments or null. |
Returns
string —Return the application's current environment.