I have two environments, development and production.
In master.blade layout file, I point to my local js file like that:
<script src="http://192.168.2.40/js/jscript.js" type="text/javascript"></script>
However, I convert this line to the following one for production server.
<script src="http://s.mysite/js/jscript.js" type="text/javascript"></script>
It is very annoyting and error-prone to switch between them. How can I solve this problem in an environment independent way.