feat: add sub category deep link

This commit is contained in:
2026-09-03 10:57:02 +03:30
parent ebe5f50145
commit 7b888f111e
6 changed files with 102 additions and 2 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ public function publicShow($id)
public function grouped($id)
{
$category = Category::with(['subcategories' => function ($q) {
$q->orderBy('name')->with(['media' => function ($m) {
$q->where('is_deeplink_only', false)->orderBy('name')->with(['media' => function ($m) {
// Deep-link-only media stays out of the normal category screen.
$m->where('is_deeplink_only', false)
->with(['image', 'detailImage', 'tags'])->latest();