add: group forum categories on topic editing page

This commit is contained in:
Roardom
2023-07-20 08:05:35 +00:00
parent 64faf4f777
commit 84d8f1d665
2 changed files with 14 additions and 4 deletions
+7 -1
View File
@@ -198,7 +198,13 @@ class TopicController extends Controller
['show_forum', '=', 1],
['start_topic', '=', 1],
])
->where('parent_id', '!=', 0)
->where('parent_id', '=', 0)
->with([
'forums' => fn ($query) => $query->whereRelation('permissions', [
['show_forum', '=', 1],
['start_topic', '=', 1],
])
])
->get();
return view('forum.topic.edit', [