amitmerchant1990 / amitmerchant-dot-com-comments

1 stars 0 forks source link

check-application-environment-laravel-view-templates/ #25

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Check for the application environment in Laravel views – Amit Merchant – A blog on PHP, JavaScript and more

Often you’d come across a scenario where you’d like to check the application environment and based on that you’d like to render things.

https://www.amitmerchant.com/check-application-environment-laravel-view-templates/

albertflex commented 2 years ago

you can simply use @if(app()->environment('production') //Do something @endif