分类增加跳转url

This commit is contained in:
2021-10-29 16:57:50 +08:00
parent 9910904ebb
commit ba5abed342
3 changed files with 27 additions and 14 deletions

View File

@@ -43,6 +43,9 @@ class IndexController extends AdminController
})->pluck('title', 'id');
})->help('当分类类型是文章详情的时候需要选择关联文章');
})
->when('web', function (WidgetForm $form) {
$form->text('url', '跳转链接');
})
->required();
$form->textarea('description', '分类简介')
@@ -107,6 +110,9 @@ class IndexController extends AdminController
})->pluck('title', 'id');
})->help('当分类类型是文章详情的时候需要选择关联文章');
})
->when('web', function (Form $form) {
$form->text('url', '跳转链接');
})
->required();
$form->textarea('description', '分类简介')->rows(4)->rules('nullable');