get app env laravel code example
Example 1: get env app url laravel
env('APP_URL')
Example 2: laravel APP_ENV config
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}
env('APP_URL')
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}