阶段更新

This commit is contained in:
2021-10-11 15:56:12 +08:00
parent 11b9e2ae76
commit 3381820ba0
17 changed files with 319 additions and 534 deletions

View File

@@ -44,6 +44,9 @@ class IndexController extends AdminController
})->pluck('title', 'id');
})->help('当分类类型是文章详情的时候需要选择关联文章');
})
->when(Category::TYPE_LINK, function (WidgetsForm $form) {
$form->text('url', '跳转地址');
})
->required();
$form->textarea('description', '分类简介')
->rules('nullable');
@@ -114,6 +117,9 @@ class IndexController extends AdminController
})->pluck('title', 'id');
})->help('当分类类型是文章详情的时候需要选择关联文章');
})
->when(Category::TYPE_LINK, function (Form $form) {
$form->text('url', '跳转地址');
})
->required()
->rules('required');
$form->textarea('description', '分类简介')->rows(4)->rules('nullable');