xxxxxxxxxx
@env('local', 'staging')
<h1>Local or Staging Environment</h1>
@endenv
//or
@production
<h1>Production Environment</h1>
@endproduction
//or
use App;
@if(App::environment('production'))
<h1>Production Environment</h1>
@endif
//or
if (app()->environment(['production'])) {
return "This is a production app.";
}