Update Migration & Seeder
This commit is contained in:
@@ -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',
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user