Skip to content

Commit 1c8a067

Browse files
committed
Merged in develop (pull request #28)
fix with HTTPS
2 parents a86104a + a9abf89 commit 1c8a067

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,6 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
5353

5454
#API2CART_URL=http://api.api2cart.local
5555

56-
UID=1000
56+
UID=1000
57+
58+
FORCE_HTTPS=true

src/app/Providers/AppServiceProvider.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Providers;
44
use Illuminate\Support\Facades\Schema;
5+
use Illuminate\Support\Facades\URL;
56

67
use Illuminate\Support\ServiceProvider;
78

@@ -25,5 +26,10 @@ public function register()
2526
public function boot()
2627
{
2728
Schema::defaultStringLength(191);
29+
30+
if(env('FORCE_HTTPS',false)) { // Default value should be false for local server
31+
URL::forceSchema('https');
32+
}
33+
2834
}
2935
}

0 commit comments

Comments
 (0)