29 lines
655 B
PHP
29 lines
655 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
User::factory()->create([
|
|
'id' => 0,
|
|
'name' => 'Root User',
|
|
'email' => 'test@example.com',
|
|
]);
|
|
User::factory()->create([
|
|
'id' => 1,
|
|
'name' => 'Normal User (but in root team)',
|
|
'email' => 'test2@example.com',
|
|
]);
|
|
User::factory()->create([
|
|
'id' => 2,
|
|
'name' => 'Normal User (not in root team)',
|
|
'email' => 'test3@example.com',
|
|
]);
|
|
}
|
|
}
|