feat: 更新数据库填充器以支持开发环境的管理员和玩家数据填充,新增示例钱包余额配置

This commit is contained in:
2026-05-08 16:33:43 +08:00
parent 8954325194
commit 8cce1778b9
6 changed files with 263 additions and 1 deletions

View File

@@ -11,6 +11,18 @@ class DatabaseSeeder extends Seeder
public function run(): void
{
// 后台账号:后续可加 AdminUserSeeder玩家players 由 SSO 映射写入
// 全环境可用的基础枚举数据
$this->call([
CurrencySeeder::class,
PlayTypeSeeder::class,
]);
// 演示管理员 + 演示玩家:**勿在生产库执行**(或确保 APP_ENV≠production
if (! app()->environment('production')) {
$this->call([
AdminRbacAndUserSeeder::class,
DevPlayerAndWalletSeeder::class,
]);
}
}
}