33 lines
889 B
PHP
33 lines
889 B
PHP
<?php
|
||
|
||
namespace Database\Seeders;
|
||
|
||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
use Illuminate\Database\Seeder;
|
||
|
||
class DatabaseSeeder extends Seeder
|
||
{
|
||
use WithoutModelEvents;
|
||
|
||
public function run(): void
|
||
{
|
||
// 全环境可用的基础枚举数据
|
||
$this->call([
|
||
CurrencySeeder::class,
|
||
PlayTypeSeeder::class,
|
||
OperationalConfigV1Seeder::class,
|
||
OddsPrizeScopesBackfillSeeder::class,
|
||
LotterySettingsSeeder::class,
|
||
]);
|
||
|
||
// 演示管理员 + 演示玩家 + 演示期号:**勿在生产库执行**(或确保 APP_ENV≠production)
|
||
if (! app()->environment('production')) {
|
||
$this->call([
|
||
AdminRbacAndUserSeeder::class,
|
||
DevPlayerAndWalletSeeder::class,
|
||
DrawDemoSeeder::class,
|
||
]);
|
||
}
|
||
}
|
||
}
|