调整文章
This commit is contained in:
@@ -70,7 +70,11 @@ class IndexController extends AdminController
|
||||
$form->text('remark', '子标题');
|
||||
$form->select('category_id', '所属分类')
|
||||
->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', '内容简介');
|
||||
|
||||
Reference in New Issue
Block a user