2023-03-24 14:54:17 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class UserSeeder extends Seeder
|
|
|
|
{
|
|
|
|
public function run(): void
|
|
|
|
{
|
|
|
|
User::factory()->create([
|
2023-06-02 12:34:45 +02:00
|
|
|
'id' => 0,
|
|
|
|
'name' => 'Root User',
|
2023-03-24 14:54:17 +01:00
|
|
|
'email' => 'test@example.com',
|
|
|
|
]);
|
|
|
|
User::factory()->create([
|
2023-08-29 14:36:17 +02:00
|
|
|
'id' => 1,
|
2023-06-09 15:55:21 +02:00
|
|
|
'name' => 'Normal User (but in root team)',
|
2023-03-24 14:54:17 +01:00
|
|
|
'email' => 'test2@example.com',
|
|
|
|
]);
|
2023-06-09 15:55:21 +02:00
|
|
|
User::factory()->create([
|
2023-08-29 14:36:17 +02:00
|
|
|
'id' => 2,
|
2023-06-09 15:55:21 +02:00
|
|
|
'name' => 'Normal User (not in root team)',
|
|
|
|
'email' => 'test3@example.com',
|
|
|
|
]);
|
2023-03-24 14:54:17 +01:00
|
|
|
}
|
|
|
|
}
|