Skip to content

Commit 99a6896

Browse files
author
Jovert Lota Palonpon
committed
Force https in production
1 parent e8eedf9 commit 99a6896

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
@@ -25,6 +25,8 @@ public function boot()
2525
*/
2626
public function register()
2727
{
28-
//
28+
if (env('APP_ENV') === 'production') {
29+
$this->app['url']->forceScheme('https');
30+
}
2931
}
3032
}

0 commit comments

Comments
 (0)