This commit is contained in:
2020-12-02 15:54:44 +08:00
parent ff3b942268
commit 6e43fe13eb
4 changed files with 46 additions and 39 deletions

View File

@@ -57,6 +57,8 @@ class IndexController extends AdminController
$form->number('order', '排序')->default(0);
$form->switch('top_show', '顶部导航显示')->states()->default(0);
$form->switch('status', '显示')->states()->default(1);
$form->text('url', '跳转地址')->help('设置后直接跳转到设置的url');
$form->action(admin_url('categories'));
$column->append((new Box('新增分类', $form))->style('success'));
@@ -121,6 +123,7 @@ class IndexController extends AdminController
$form->switch('status', '显示')->states()->default(1);
$form->switch('top_show', '顶部导航显示')->states();
$form->text('url', '跳转地址')->help('设置后直接跳转到设置的url');
$form->saving(function (Form $form) {