feat: add type
This commit is contained in:
@@ -80,6 +80,7 @@ public function grouped($id)
|
||||
'title' => $category->name,
|
||||
'description' => $category->description,
|
||||
'icon_url' => $category->icon_url,
|
||||
'type' => $category->type,
|
||||
],
|
||||
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
||||
'sub_category' => [
|
||||
|
||||
@@ -110,6 +110,7 @@ public function grouped($id)
|
||||
'title' => $category->name,
|
||||
'description' => $category->description,
|
||||
'image_url' => $category->image?->url,
|
||||
'type' => 'playlist',
|
||||
],
|
||||
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
||||
'sub_category' => [
|
||||
|
||||
Reference in New Issue
Block a user