1if (\Illuminate\Support\Facades\App::environment('production')) {
2 // The environment is production
3}
1if (App::environment('local')) {
2 // The environment is local
3}
4
5if (App::environment(['local', 'staging'])) {
6 // The environment is either local OR staging...
7}