W3cubDocs

/Laravel 5.3

EnvironmentDetector

class EnvironmentDetector (View source)

Methods

string detect(Closure $callback, array|null $consoleArgs = null)

Detect the application's current environment.

Details

string detect(Closure $callback, array|null $consoleArgs = null)

Detect the application's current environment.

Parameters

Closure $callback
array|null $consoleArgs

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/EnvironmentDetector.html