<?php
 namespace App\Http\Controllers\Admin; use TechSoft\Laravel\Admin\Cms\ConfigCms; use TechSoft\Laravel\Admin\Cms\Field\FieldSwitch; use TechSoft\Laravel\Admin\Support\AdminCheckController; use TechSoft\Laravel\Admin\Traits\ConfigContactTrait; use TechSoft\Laravel\Admin\Traits\ConfigCustomPageTrait; use TechSoft\Laravel\Admin\Traits\ConfigEmailTrait; use TechSoft\Laravel\Admin\Traits\ConfigInputTrait; use TechSoft\Laravel\Admin\Traits\ConfigMemberSettingTrait; use TechSoft\Laravel\Admin\Traits\ConfigOauthTrait; use TechSoft\Laravel\Admin\Traits\ConfigSettingTrait; use TechSoft\Laravel\Admin\Traits\ConfigSmsTrait; use TechSoft\Laravel\Admin\Traits\ConfigSSOTrait; use TechSoft\Laravel\Admin\Traits\ConfigUploadTrait; use TechSoft\Laravel\Admin\Traits\ConfigVisitTrait; class ConfigController extends AdminCheckController { use ConfigSettingTrait; use ConfigEmailTrait; use ConfigSmsTrait; use ConfigVisitTrait; use ConfigMemberSettingTrait; use ConfigOauthTrait; use ConfigContactTrait; use ConfigInputTrait; use ConfigSSOTrait; use ConfigUploadTrait; use ConfigCustomPageTrait; public function moduleForum(ConfigCms $configCms) { return $configCms->execute($this, [ 'group' => 'moduleForum', 'pageTitle' => '论坛设置', 'fields' => [ 'moduleForumThreadVerifyEnable' => ['type' => FieldSwitch::class, 'title' => '开启发帖审核', 'desc' => ''], 'moduleForumPostVerifyEnable' => ['type' => FieldSwitch::class, 'title' => '开启回帖审核', 'desc' => ''], ] ]); } }