调整文章

This commit is contained in:
2022-11-16 11:49:31 +08:00
parent 5395fb6a32
commit 45784c44c3

View File

@@ -70,7 +70,11 @@ class IndexController extends AdminController
$form->text('remark', '子标题'); $form->text('remark', '子标题');
$form->select('category_id', '所属分类') $form->select('category_id', '所属分类')
->options(Category::selectOptions(function ($model) { ->options(Category::selectOptions(function ($model) {
return $model->where('status', 1)->whereIn('type', [Category::TYPE_ARTICLE, Category::TYPE_SHOW]); return $model->where('status', 1)->whereIn('type', [
Category::TYPE_ARTICLE,
Category::TYPE_LINK,
Category::TYPE_SHOW
]);
}, '一级分类')); }, '一级分类'));
$form->textarea('description', '内容简介'); $form->textarea('description', '内容简介');