.env file url route code example
Example 1: laravel get env variable
dd(env('APP_NAME'));
Example 2: laravel APP_ENV config
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}
dd(env('APP_NAME'));
if (\Illuminate\Support\Facades\App::environment('production')) {
// The environment is production
}