預設管理員的seeder
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 59s

This commit is contained in:
2026-01-08 09:48:12 +08:00
parent ef1fc47cff
commit f9f0d09195

View File

@@ -17,10 +17,14 @@ class DatabaseSeeder extends Seeder
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
User::firstOrCreate(
['username' => 'admin'],
[
'name' => '系統管理員',
'email' => 'admin@example.com',
'password' => 'password',
]
);
$this->call([
CategorySeeder::class,