This commit is contained in:
Joao Patricio
2023-03-30 20:24:43 +01:00
parent f05ab87c08
commit a852a15dab
6 changed files with 53 additions and 19 deletions

View File

@@ -19,6 +19,7 @@ class UserFactory extends Factory
{
return [
'name' => fake()->name(),
'uuid' => Str::uuid(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password

View File

@@ -10,13 +10,11 @@ class UserSeeder extends Seeder
public function run(): void
{
User::factory()->create([
'id' => 1,
'name' => 'Root User',
'email' => 'test@example.com',
'is_root_user' => true,
]);
User::factory()->create([
'id' => 2,
'name' => 'Normal User',
'email' => 'test2@example.com',
]);