get env value laravel code example
Example 1: get env app url laravel
env('APP_URL')
Example 2: laravel get env variable
dd(env('APP_NAME'));
Example 3: laravel check environment hlper
if (App::environment('local')) {
// The environment is local
}
if (App::environment(['local', 'staging'])) {
// The environment is either local OR staging...
}