<?php
require 'vendor/autoload.php';
$app = require_once 'bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();

$siswas = App\Models\Siswa::where('nis', 'like', 'TEST%')->get();
foreach ($siswas as $s) {
    echo "ID: $s->id, NIS: $s->nis, Nama: $s->nama_lengkap, Kelas ID: $s->kelas_id, TA ID: $s->tahun_ajaran_id\n";
}
