Fix: force HTTPS scheme for assets to resolve mixed content errors

This commit is contained in:
2026-08-30 12:13:15 +07:00
parent da74b66241
commit 42ab1b4c13
+5
View File
@@ -27,6 +27,11 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
// Paksa penggunaan HTTPS di environment selain local untuk mencegah Mixed Content
if (config('app.env') !== 'local') {
URL::forceScheme('https');
}
Paginator::useBootstrap();
Schema::defaultStringLength(191);
View::share('baseUrl', URL::to('/'));