Update Migration & Seeder

This commit is contained in:
2026-05-26 09:38:38 +07:00
parent 9231f25e5d
commit e4f7d675a1
12 changed files with 71 additions and 215 deletions
+3 -3
View File
@@ -15,17 +15,18 @@ class AdminUserSeeder extends Seeder
public function run(): void
{
DB::table('users')->insert([
'uid' => 'AD-1234567891',
'name' => 'Admin',
'username' => 'admin',
'email' => 'admin@example.com',
'email_verified_at' => now(),
'password' => Hash::make('Asalada123'),
'role' => 'super_admin',
'uid' => 'AD-1234567891',
'created_at' => now(),
'updated_at' => now(),
]);
Db::table('profiles')->insert([
DB::table('profiles')->insert([
'user_id' => 1,
'role' => 'super_admin',
'nama' => 'Admin',
@@ -44,7 +45,6 @@ class AdminUserSeeder extends Seeder
'updated_by' => 1,
'created_at' => now(),
'updated_at' => now(),
'adat_id' => null,
'user_uid' => 'AD-1234567891',
]);
}