I\'m currently trying to seed my users table. If I try it like this with 2 rows, it fails. It works fine if I just use a single array instead of the 2 arrays inside the $users a
use truncate
'Super Admin',
'email' => 'superadmin@gmail.com',
'password' => '123456',
],
[
'name' => 'Account Admin',
'email' => 'accountadmin@gmail.com',
'password' => '13456',
],
[
'name' => 'Project Admin',
'email' => 'projectadmin@gmail.com',
'password' => '13456',
],
[
'name' => 'Client Admin',
'email' => 'clientadmin@gmail.com',
'password' => '13456',
]
];
User::create($users);
}
}