lasthourcloud/database/seeders/UserSeeder.php

27 lines
609 B
PHP
Raw Normal View History

<?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 10:34:45 +00:00
'id' => 0,
'name' => 'Root User',
'email' => 'test@example.com',
]);
User::factory()->create([
2023-06-09 13:55:21 +00:00
'name' => 'Normal User (but in root team)',
'email' => 'test2@example.com',
]);
2023-06-09 13:55:21 +00:00
User::factory()->create([
'name' => 'Normal User (not in root team)',
'email' => 'test3@example.com',
]);
}
}