From 9100b425d8b2fdccad3b48bd307a1979605ae40f Mon Sep 17 00:00:00 2001 From: Owen Melbourne Date: Wed, 26 Apr 2017 13:39:16 +0100 Subject: [PATCH] Replacing hardcoded protocol in mix helper (#18943) * Replacing hardcoded protocol in mix helper This does not solve "the whole problem" however currently the mix helper hardcodes the port and protocol. When using SSL on your development environment browsers refuse to load the assets served by mix when using HMR over http This change makes sure it uses the correct protocol. Although it doesn't solve the issue of users not having SSL on "localhost" * Code styling changes * simplified :) * Update helpers.php --- src/Illuminate/Foundation/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 6b6ebf5b79b0..7b108491ae31 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -574,7 +574,7 @@ function mix($path, $manifestDirectory = '') } if (file_exists(public_path($manifestDirectory.'/hot'))) { - return new HtmlString("http://localhost:8080{$path}"); + return new HtmlString("//localhost:8080{$path}"); } if (! $manifest) {