Files

38 lines
598 B
PHP
Raw Permalink Normal View History

2024-11-27 11:16:45 +07:00
<?php
namespace App\Providers;
2024-12-02 01:18:34 +07:00
use Illuminate\Support\Facades\URL;
2024-11-27 11:16:45 +07:00
use Illuminate\Support\ServiceProvider;
2026-06-01 15:01:03 +07:00
use Illuminate\Pagination\Paginator;
2024-11-27 11:16:45 +07:00
2024-12-02 01:18:34 +07:00
2024-11-27 11:16:45 +07:00
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
2024-12-02 01:18:34 +07:00
*
* @return void
2024-11-27 11:16:45 +07:00
*/
2024-12-02 01:18:34 +07:00
public function register()
2024-11-27 11:16:45 +07:00
{
//
}
/**
* Bootstrap any application services.
2024-12-02 01:18:34 +07:00
*
* @return void
2024-11-27 11:16:45 +07:00
*/
2024-12-02 01:18:34 +07:00
public function boot()
2024-11-27 11:16:45 +07:00
{
2024-12-02 01:18:34 +07:00
if (env('REDIRECT_HTTPS')) {
URL::forceScheme('https');
}
2026-06-01 15:01:03 +07:00
Paginator::useBootstrap();
2024-12-02 01:18:34 +07:00
2024-11-27 11:16:45 +07:00
}
}