refactor: 修复知识库和操作指引

This commit is contained in:
2026-03-13 14:32:37 +08:00
parent bbe8e60646
commit 58f42de9df
88 changed files with 3387 additions and 2472 deletions

View File

@@ -33,7 +33,7 @@ class DatabaseSeeder extends Seeder
'email' => 'admin@example.com',
'password' => Hash::make('TRG}E^5BvPcbyErc'),
]);
// 为管理员分配 super-admin 角色
$admin->assignRole('super-admin');
@@ -218,13 +218,13 @@ class DatabaseSeeder extends Seeder
]);
$this->command->info('演示数据生成完成!');
// 9. 创建终端数据
$this->call(TerminalSeeder::class);
// 10. 创建SOP模板数据
$this->call(SopTemplateSeeder::class);
// 10. 创建操作指引数据
$this->call(GuideSeeder::class);
$this->command->newLine();
$this->command->info('=== 生成的数据摘要 ===');
$this->command->info('用户数量: ' . User::count());