use Illuminate\Contracts\Http\Kernel; use Illuminate\Http\Request; // ✅ Debug biar error PHP ditampilkan ini_set('display_errors', 1); error_reporting(E_ALL); // ✅ Cek apakah Laravel mulai jalan echo "✅ MULAI INDEX.PHP
"; define('LARAVEL_START', microtime(true)); // ✅ Composer autoload require __DIR__.'/../vendor/autoload.php'; echo "✅ AUTOLOAD OK
"; // ✅ Load Laravel app instance $app = require_once __DIR__.'/../bootstrap/app.php'; if (!$app) { die("❌ GAGAL LOAD APP"); } echo "✅ APP LOADED
"; // ✅ Buat Kernel Laravel $kernel = $app->make(Kernel::class); echo "✅ KERNEL LOADED
"; // ✅ Jalankan request Laravel $response = tap($kernel->handle( $request = Request::capture() ))->send(); $kernel->terminate($request, $response);