fix: force root url subpath /sidata and https scheme
This commit is contained in:
@@ -31,10 +31,15 @@ class AppServiceProvider extends ServiceProvider
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
|
||||
// PAKSA LARAVEL GUNAKAN SUBPATH /sidata UNTUK SEMUA ROUTE & REDIRECT
|
||||
if (config('app.url')) {
|
||||
URL::forceRootUrl(config('app.url'));
|
||||
}
|
||||
|
||||
Paginator::useBootstrap();
|
||||
Schema::defaultStringLength(191);
|
||||
|
||||
// Gunakan config('app.url') agar menghasilkan https://dashboard-bpkd.drc-bpkd.data-center.id/sidata
|
||||
// Tetap bagikan ke view untuk penggunaan manual (misal: {{ $baseUrl }}/link)
|
||||
View::share('baseUrl', config('app.url'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user