laravel environment setup code example
Example 1: install laravel globally
composer global require laravel/installer
Example 2: laravel APP_ENV config
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}
Example 3: laravel use config
use Illuminate\Support\Facades\Config;