阶段更新

This commit is contained in:
2021-10-11 13:09:29 +08:00
parent d89bc90cef
commit 11b9e2ae76
31 changed files with 1095 additions and 659 deletions

View File

@@ -39,7 +39,7 @@ class IndexController extends AdminController
->when('show', function (WidgetsForm $form) {
$form->select('article_id', '关联文章')
->options(function ($option, $info) {
return Article::whereHas('categories', function ($q) {
return Article::whereHas('category', function ($q) {
$q->where('type', 'show');
})->pluck('title', 'id');
})->help('当分类类型是文章详情的时候需要选择关联文章');
@@ -109,7 +109,7 @@ class IndexController extends AdminController
->when('show', function (Form $form) {
$form->select('article_id', '关联文章')
->options(function ($option, $info) {
return Article::whereHas('categories', function ($q) {
return Article::whereHas('category', function ($q) {
$q->where('type', 'show');
})->pluck('title', 'id');
})->help('当分类类型是文章详情的时候需要选择关联文章');