<?php
 namespace App\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Layout\AdminConfigBuilder; class ConfigController extends Controller { public function blog(AdminConfigBuilder $builder) { $builder->pageTitle('博客设置'); $builder->switch('blogMessageEnable', '开启留言功能'); $builder->switch('blogCommentEnable', '开启博客评论功能'); $builder->text('blogName', '博客名'); $builder->text('blogSlogan', '博客标语'); $builder->textarea('blogIntroduction', '个人介绍'); $builder->image('blogBackground', '博客左侧图片'); $builder->formClass('wide'); return $builder->perform(); } public function contact(AdminConfigBuilder $builder) { $builder->pageTitle('联系方式'); $builder->text('contactWeibo', '微博'); $builder->text('contactEmail', '邮箱'); $builder->text('contactWechat', '微信'); $builder->text('contactQQ', 'QQ'); return $builder->perform(); } }