Open utterances-bot opened 2 years ago
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/
you can simply use @if(app()->environment('production') //Do something @endif
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/