This repository was archived by the owner on Oct 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ APP_ENV=local
44APP_KEY =
55APP_DEBUG = true
66APP_URL = http://localhost
7+ APP_FORCE_HTTPS = false
78
89LOG_CHANNEL = stack
910LOG_DEPRECATIONS_CHANNEL = null
Original file line number Diff line number Diff line change 1313use Illuminate \Support \Facades \File ;
1414use Illuminate \Support \Facades \Log ;
1515use Illuminate \Support \Facades \Schema ;
16+ use Illuminate \Support \Facades \URL ;
1617use Illuminate \Support \Facades \View ;
1718use Illuminate \Support \ServiceProvider ;
1819
@@ -33,6 +34,10 @@ public function register()
3334 */
3435 public function boot ()
3536 {
37+ if (config ('app.force_https ' )) {
38+ URL ::forceScheme ('https ' );
39+ }
40+
3641 try {
3742 if (Schema::hasTable ('settings ' )) {
3843 $ tenant = request ()->tenant ;
Original file line number Diff line number Diff line change 239239 'URL ' => Illuminate \Support \Facades \URL ::class,
240240 'Validator ' => Illuminate \Support \Facades \Validator::class,
241241 'View ' => Illuminate \Support \Facades \View::class,
242- 'PDF ' => Barryvdh \DomPDF \Facade ::class,
242+ 'PDF ' => Barryvdh \DomPDF \PDF ::class,
243243
244244 ],
245245
246+ 'force_https ' => env ('APP_FORCE_HTTPS ' , false ),
247+
246248];
You can’t perform that action at this time.
0 commit comments