We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5321f44 commit fbad202Copy full SHA for fbad202
1 file changed
app/Providers/AppServiceProvider.php
@@ -2,6 +2,7 @@
2
3
namespace App\Providers;
4
5
+use Illuminate\Support\Facades\URL;
6
use Illuminate\Support\ServiceProvider;
7
8
class AppServiceProvider extends ServiceProvider
@@ -23,6 +24,10 @@ public function register()
23
24
*/
25
public function boot()
26
{
- //
27
+
28
+ if(env('FORCE_SSL', false)) {
29
+ URL::forceScheme('https');
30
+ }
31
32
}
33
0 commit comments