AppServiceProvider.php 551 B

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