26 lines
597 B
PHP
26 lines
597 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Pagination\Paginator;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
Paginator::useTailwind();
|
|
|
|
// Paksa URL Utama & HTTPS di Production untuk menjamin asset() & route() konsisten
|
|
if (config('app.env') !== 'local') {
|
|
\Illuminate\Support\Facades\URL::forceRootUrl(config('app.url'));
|
|
\Illuminate\Support\Facades\URL::forceScheme('https');
|
|
}
|
|
}
|
|
}
|