Allow the livereload host to be set in the .env file

This commit is contained in:
Kevin MacMartin 2016-03-19 15:31:28 -04:00
parent e0a1832d31
commit f42f5e5a16
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,8 @@ APP_DEBUG=true
APP_KEY=random_string APP_KEY=random_string
APP_URL=http://localhost APP_URL=http://localhost
LR_HOST=localhost
DB_HOST=localhost DB_HOST=localhost
DB_DATABASE=hypothetical DB_DATABASE=hypothetical
DB_USERNAME=homestead DB_USERNAME=homestead

View file

@ -8,7 +8,7 @@
@if (Config::get('app.debug')) @if (Config::get('app.debug'))
<script type="text/javascript"> <script type="text/javascript">
document.write('<script src="//localhost:35729/livereload.js?snipver=1" type="text/javascript"><\/script>') document.write('<script src="//{{ env('LR_HOST', 'localhost') }}:35729/livereload.js?snipver=1" type="text/javascript"><\/script>')
</script> </script>
@endif @endif
</head> </head>