'admin@cripumps.com'], // Data to update/create [ 'name' => 'Admin', 'password' => Hash::make('jOtHi$9000'), 'updated_at' => now(), 'created_at' => now() ] ); // $user1 = User::firstOrCreate([ // 'name' => 'Admin', // 'email' => 'admin@cripumps.com', // 'password' => bcrypt('admin'), // ]); $user1->assignRole('Super Admin'); $user2 = User::updateOrCreate( // Unique identifier ['email' => 'dhanabalan@cripumps.com'], // Data to update/create [ 'name' => 'Dhanabalan S', 'password' => bcrypt('SdHaNa@123'), 'updated_at' => now(), 'created_at' => now() ] ); // $user2 = User::firstOrCreate([ // 'name' => 'Dhana', // 'email' => 'dhana@cripumps.com', // 'password' => bcrypt('dhana@123'), // ]); $user2->assignRole('Super Admin'); $user3 = User::updateOrCreate( // Unique identifier ['email' => 'ranjith@cripumps.com'], // Data to update/create [ 'name' => 'Ranjith B', 'password' => bcrypt('Ranjii@5503'), 'updated_at' => now(), 'created_at' => now() ] ); // $user3 = User::firstOrCreate([ // 'name' => 'Ranjith', // 'email' => 'ranjith@cripumps.com', // 'password' => bcrypt('ranjith@123'), // ]); $user3->assignRole('Super Admin'); $user4 = User::updateOrCreate( // Unique identifier ['email' => 'srimathi@cripumps.com'], // Data to update/create [ 'name' => 'Srimathi M', 'password' => bcrypt('MsRi@123'), 'updated_at' => now(), 'created_at' => now() ] ); // $user4 = User::firstOrCreate([ // 'name' => 'Srimathi', // 'email' => 'srimathi@cripumps.com', // 'password' => bcrypt('srimathi@123'), // ]); $user4->assignRole('Super Admin'); // User::factory()->count(5)->create(); } }