Initial commit for combined ProjectKP
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?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.";
|
||||
}
|
||||
Reference in New Issue
Block a user