This commit is contained in:
2026-06-12 20:32:35 +03:30
parent b3ce699159
commit 81aba7232a
2 changed files with 5 additions and 5 deletions
@@ -107,15 +107,15 @@ public function grouped($id)
return response()->json([
'category' => [
'id' => $category->id,
'title' => $category->name,
'name' => $category->name,
'description' => $category->description,
'image_url' => $category->image?->url,
'icon_url' => $category->image?->url,
'type' => 'playlist',
],
'sub_categories' => $category->subcategories->map(fn ($sub) => [
'sub_category' => [
'id' => $sub->id,
'title' => $sub->name,
'name' => $sub->name,
'description' => $sub->description,
'image_url' => $sub->image?->url,
],