<?php
 namespace TechSoft\Laravel\Admin\Traits; use TechSoft\Laravel\Admin\Cms\ConfigCms; use TechSoft\Laravel\Admin\Cms\Field\FieldImage; use TechSoft\Laravel\Admin\Cms\Field\FieldSelect; use TechSoft\Laravel\Admin\Cms\Field\FieldText; use TechSoft\Laravel\Admin\Cms\Field\FieldTextarea; trait ConfigCustomPageTrait { public function customPage(ConfigCms $configCms) { return $configCms->execute($this, [ 'group' => 'customPage', 'pageTitle' => '自定义系统页', 'fields' => [ 'customPage404' => ['type' => FieldTextarea::class, 'title' => '自定义404页（页面不存在）', 'desc' => '内容为页面HTML'], 'customPage500' => ['type' => FieldTextarea::class, 'title' => '自定义500页（系统错误）', 'desc' => '内容为页面HTML'], ] ]); } } 