call(ConfigSeeder::class); } if (Level::doesntExist()) { $this->call(LevelSeeder::class); } if (Role::doesntExist()) { $this->call(RBACSeeder::class); } if (User::doesntExist()) { // 生成初始管理账号 $user = Helpers::addUser('test@test.com', '123456', 100 * GiB, (int) sysConfig('default_days'), null, '管理员'); $user->update(['status' => 1]); $user->assignRole('Super Admin'); } if (Country::doesntExist()) { $this->call(CountrySeeder::class); } if (Label::doesntExist()) { $this->call(LabelSeeder::class); } if (Rule::doesntExist()) { $this->call(RuleSeeder::class); } if (SsConfig::doesntExist()) { $this->call(SsConfigSeeder::class); } if (EmailFilter::doesntExist()) { $this->call(EmailFilterSeeder::class); } if (Article::doesntExist()) { $this->call(ArticleSeeder::class); } } }