<?php
 namespace Module\Paper\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Layout\AdminConfigBuilder; class ConfigController extends Controller { public function setting(AdminConfigBuilder $builder) { $builder->pageTitle('考试设置'); $builder->switch('modulePaperExamEnable', '考试功能开启')->help('开启后，用户可登录注册后参加考试'); $builder->number('modulePaperExamMaxPage', '试卷列表最大显示页数')->help('默认为20'); $builder->number('modulePaperExamSearchPaperMaxPage', '试卷搜索最大显示页数')->help('默认为20'); $builder->formClass('wide'); return $builder->perform(); } }