You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AppServiceProvider.php 483B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\Facades\URL;
  4. use Illuminate\Support\ServiceProvider;
  5. class AppServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Register any application services.
  9. */
  10. public function register(): void
  11. {
  12. //
  13. }
  14. /**
  15. * Bootstrap any application services.
  16. */
  17. public function boot(): void
  18. {
  19. if (app()->environment('production')) {
  20. URL::forceScheme('https');
  21. }
  22. }
  23. }