Added multiple super admin user and reduced random user creation upto 5

This commit is contained in:
dhanabalan
2025-04-20 17:08:14 +05:30
parent eb72a0f564
commit 62397a1c5d

View File

@@ -17,9 +17,36 @@ class UserSeeder extends Seeder
'email' => 'admin@cripumps.com',
'password' => bcrypt('admin'),
]);
$user1->assignRole('Super Admin');
User::factory()->count(10)->create();
$user2 = User::create([
'name' => 'Jothi',
'email' => 'jothi@cripumps.com',
'password' => bcrypt('jothi@123'),
]);
$user2->assignRole('Super Admin');
$user3 = User::create([
'name' => 'Dhana',
'email' => 'dhana@cripumps.com',
'password' => bcrypt('dhana@123'),
]);
$user3->assignRole('Super Admin');
$user4 = User::create([
'name' => 'Ranjith',
'email' => 'ranjith@cripumps.com',
'password' => bcrypt('ranjith@123'),
]);
$user4->assignRole('Super Admin');
$user5 = User::create([
'name' => 'Srimathi',
'email' => 'srimathi@cripumps.com',
'password' => bcrypt('srimathi@123'),
]);
$user5->assignRole('Super Admin');
User::factory()->count(5)->create();
}
}