Skip to content

Commit 9100b42

Browse files
OwenMelbztaylorotwell
authored andcommitted
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
1 parent a1a443a commit 9100b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ function mix($path, $manifestDirectory = '')
574574
}
575575

576576
if (file_exists(public_path($manifestDirectory.'/hot'))) {
577-
return new HtmlString("http://localhost:8080{$path}");
577+
return new HtmlString("//localhost:8080{$path}");
578578
}
579579

580580
if (! $manifest) {

0 commit comments

Comments
 (0)