Skip to content

Commit fbad202

Browse files
committed
Add force ssl flag
1 parent 5321f44 commit fbad202

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

app/Providers/AppServiceProvider.php

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

33
namespace App\Providers;
44

5+
use Illuminate\Support\Facades\URL;
56
use Illuminate\Support\ServiceProvider;
67

78
class AppServiceProvider extends ServiceProvider
@@ -23,6 +24,10 @@ public function register()
2324
*/
2425
public function boot()
2526
{
26-
//
27+
28+
if(env('FORCE_SSL', false)) {
29+
URL::forceScheme('https');
30+
}
31+
2732
}
2833
}

0 commit comments

Comments
 (0)