8000 force https on production · cba85/laravel8-saas@c722bd6 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit c722bd6

Browse files
committed
force https on production
1 parent e692cab commit c722bd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public function register()
1313

1414
public function boot()
1515
{
16-
//
16+
if (app()->environment('production')) {
17+
URL::forceScheme('https');
18+
}
1719
}
1820
}

0 commit comments

Comments
 (0)
0