chore(maint): add psr conflict, ajust seeder defaults

This commit is contained in:
2023-06-28 11:14:07 +00:00
parent 56979569cf
commit b620f1e9af
3 changed files with 30 additions and 4 deletions

View File

@@ -47,16 +47,39 @@ class UserSeeder extends Seeder
$admin = User::create(([
'uuid' => 'b741345057274a519144881927be0290', // Ghost
'name' => 'Admin',
'email' => 'admin@webvokestudio.pt',
'email' => 'admin@example.com',
'email_verified_at' => now(),
'username' => 'admin',
'registrationIp' => '0.0.0.0',
'currentIp' => '0.0.0.0',
'password' => Hash::make('admin'),
'password' => Hash::make('password'),
]))->assignRole('user', 'reviewer', 'hiringManager', 'admin');
$staff = User::create(([
'uuid' => 'b741345057274a519144881927be0290', // Ghost
'name' => 'Admin',
'email' => 'staffmember@example.com',
'email_verified_at' => now(),
'username' => 'admin',
'registrationIp' => '0.0.0.0',
'currentIp' => '0.0.0.0',
'password' => Hash::make('password'),
]))->assignRole('user', 'reviewer', 'staff');
$endUser = User::create(([
'uuid' => 'b741345057274a519144881927be0290', // Ghost
'name' => 'Admin',
'email' => 'admin@example.com',
'email_verified_at' => now(),
'username' => 'admin',
'registrationIp' => '0.0.0.0',
'currentIp' => '0.0.0.0',
'password' => Hash::make('password'),
]))->assignRole('user');
$users = User::factory()
->count(1500)
->count(60)
->create();
foreach ($users as $user) {