fix: error mix content http

This commit is contained in:
Lutfi Hakim 2026-04-12 11:27:00 +07:00
parent 139c85f857
commit 85a319def4
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL; // <-- 1. Tambahkan baris ini di sini
class AppServiceProvider extends ServiceProvider
{
@ -19,6 +20,9 @@ public function register(): void
*/
public function boot(): void
{
//
// <-- 2. Tambahkan blok kode ini
if (config('app.env') === 'production') {
URL::forceScheme('https');
}
}
}