|
|
@ -17,7 +17,7 @@ class UserSeeder extends Seeder |
|
|
|
'username' => 'admin', |
|
|
|
'username' => 'admin', |
|
|
|
'fullname' => 'Admin System', |
|
|
|
'fullname' => 'Admin System', |
|
|
|
'nip' => '1234567890123456', |
|
|
|
'nip' => '1234567890123456', |
|
|
|
'email' => 'admin@gmail.com', |
|
|
|
'email' => 'admin@admin.com', |
|
|
|
'no_hp' => '085159079010', |
|
|
|
'no_hp' => '085159079010', |
|
|
|
'divisi' => 'Admin Division', |
|
|
|
'divisi' => 'Admin Division', |
|
|
|
'tgl_lahir' => '1990-01-01', |
|
|
|
'tgl_lahir' => '1990-01-01', |
|
|
@ -28,7 +28,7 @@ class UserSeeder extends Seeder |
|
|
|
'warehouse_id' => 1, // Menghasilkan UUID versi 4 |
|
|
|
'warehouse_id' => 1, // Menghasilkan UUID versi 4 |
|
|
|
'address' => 'Jalan Ciwatu', |
|
|
|
'address' => 'Jalan Ciwatu', |
|
|
|
'email_verified_at' => now(), |
|
|
|
'email_verified_at' => now(), |
|
|
|
'password' => bcrypt('admin'), |
|
|
|
'password' => bcrypt('password'), |
|
|
|
'created_by' => 'Seeder', |
|
|
|
'created_by' => 'Seeder', |
|
|
|
'updated_by' => 'Seeder', |
|
|
|
'updated_by' => 'Seeder', |
|
|
|
]); |
|
|
|
]); |
|
|
@ -38,7 +38,7 @@ class UserSeeder extends Seeder |
|
|
|
'username' => 'Operator', |
|
|
|
'username' => 'Operator', |
|
|
|
'fullname' => 'Operator System', |
|
|
|
'fullname' => 'Operator System', |
|
|
|
'nip' => '6543210987654321', |
|
|
|
'nip' => '6543210987654321', |
|
|
|
'email' => 'operator@gmail.com', |
|
|
|
'email' => 'operator@operator.com', |
|
|
|
'no_hp' => '087779767603', |
|
|
|
'no_hp' => '087779767603', |
|
|
|
'divisi' => 'Operator Gudang', |
|
|
|
'divisi' => 'Operator Gudang', |
|
|
|
'tgl_lahir' => '1985-05-15', |
|
|
|
'tgl_lahir' => '1985-05-15', |
|
|
@ -49,31 +49,9 @@ class UserSeeder extends Seeder |
|
|
|
'warehouse_id' => 2, // Menghasilkan UUID versi 4 |
|
|
|
'warehouse_id' => 2, // Menghasilkan UUID versi 4 |
|
|
|
'address' => 'Jalan Gelarmendala', |
|
|
|
'address' => 'Jalan Gelarmendala', |
|
|
|
'email_verified_at' => now(), |
|
|
|
'email_verified_at' => now(), |
|
|
|
'password' => bcrypt('operator'), |
|
|
|
'password' => bcrypt('password'), |
|
|
|
'created_by' => 'Seeder', |
|
|
|
'created_by' => 'Seeder', |
|
|
|
'updated_by' => 'Seeder', |
|
|
|
'updated_by' => 'Seeder', |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
// for ($i = 3; $i <= 100; $i++) { |
|
|
|
|
|
|
|
// User::create([ |
|
|
|
|
|
|
|
// 'username' => 'user' . $i, |
|
|
|
|
|
|
|
// 'fullname' => 'User ' . $i, |
|
|
|
|
|
|
|
// 'nip' => '1234567890123' . $i, |
|
|
|
|
|
|
|
// 'email' => 'user' . $i . '@example.com', |
|
|
|
|
|
|
|
// 'no_hp' => '1234567890' . $i, |
|
|
|
|
|
|
|
// 'divisi' => 'Division ' . $i, |
|
|
|
|
|
|
|
// 'tgl_lahir' => now(), |
|
|
|
|
|
|
|
// 'jenis_kelamin' => ($i % 2 == 0) ? 'Laki-laki' : 'Perempuan', |
|
|
|
|
|
|
|
// 'agama' => ($i % 2 == 0) ? 'Islam' : 'Kristen', |
|
|
|
|
|
|
|
// 'foto' => '', // Ganti dengan nama berkas foto jika diperlukan |
|
|
|
|
|
|
|
// 'role_id' => $i, |
|
|
|
|
|
|
|
// 'warehouse_id' => $i, |
|
|
|
|
|
|
|
// 'address' => 'Address ' . $i, |
|
|
|
|
|
|
|
// 'email_verified_at' => now(), |
|
|
|
|
|
|
|
// 'password' => bcrypt('password'), |
|
|
|
|
|
|
|
// 'created_by' => 'Seeder', |
|
|
|
|
|
|
|
// 'updated_by' => 'Seeder', |
|
|
|
|
|
|
|
// ]); |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |