File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2828use Illuminate \Database \Eloquent \Model ;
2929use Illuminate \Database \Eloquent \Relations \Relation ;
3030use Illuminate \Foundation \Application ;
31- use Illuminate \Support \Facades \App ;
3231use Illuminate \Support \Facades \Route ;
3332use Illuminate \Support \Facades \URL ;
3433use Illuminate \Support \ServiceProvider ;
@@ -91,9 +90,9 @@ public function boot(): void
9190 );
9291 });
9392
94- if (config ('app.force_https ' , false ) || App:: isProduction () ) {
93+ if (config ('app.force_https ' , false )) {
9594 URL ::forceScheme ('https ' );
96- request ()->server ->set ('HTTPS ' , request ()-> header ( ' X-Forwarded-Proto ' , ' https ' ) === ' https ' ? ' on ' : ' off ' );
95+ request ()->server ->set ('HTTPS ' , ' on ' );
9796 }
9897
9998 $ this ->app ->scoped (PermissionStore::class, function (Application $ app ): PermissionStore {
You can’t perform that action at this time.
0 commit comments