<?php
require __DIR__ . '/bootstrap/app.php';

$app = require_once __DIR__ . '/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$studentIds = DB::connection('mysql')->table('students')->limit(5)->get(['student_id', 'name']);

echo "学生ID类型检查:\n";
foreach ($studentIds as $student) {
    echo "ID: {$student->student_id}, Type: " . gettype($student->student_id) . ", Name: {$student->name}\n";
}
