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

$user = App\Models\User::where('email', 'harri@pegawai.com')->first();
if ($user) {
    $user->username = 'hari_disnaker';
    $user->save();
    echo "Username berhasil diubah menjadi: " . $user->username;
} else {
    echo "User tidak ditemukan.";
}
