lasthourcloud/database/seeders/UserSeeder.php
Andras Bacsai 39d37010a3 fixes
2023-06-02 12:34:45 +02:00

24 lines
480 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',
'is_root_user' => true,
]);
User::factory()->create([
'name' => 'Normal User',
'email' => 'test2@example.com',
]);
}
}