fix
This commit is contained in:
@@ -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,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user