fix
This commit is contained in:
@@ -77,7 +77,7 @@ public function grouped($id)
|
|||||||
return response()->json([
|
return response()->json([
|
||||||
'category' => [
|
'category' => [
|
||||||
'id' => $category->id,
|
'id' => $category->id,
|
||||||
'title' => $category->name,
|
'name' => $category->name,
|
||||||
'description' => $category->description,
|
'description' => $category->description,
|
||||||
'icon_url' => $category->icon_url,
|
'icon_url' => $category->icon_url,
|
||||||
'type' => $category->type,
|
'type' => $category->type,
|
||||||
@@ -85,7 +85,7 @@ public function grouped($id)
|
|||||||
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
||||||
'sub_category' => [
|
'sub_category' => [
|
||||||
'id' => $sub->id,
|
'id' => $sub->id,
|
||||||
'title' => $sub->name,
|
'name' => $sub->name,
|
||||||
'description' => $sub->description,
|
'description' => $sub->description,
|
||||||
],
|
],
|
||||||
'medias' => $sub->media,
|
'medias' => $sub->media,
|
||||||
|
|||||||
@@ -107,15 +107,15 @@ public function grouped($id)
|
|||||||
return response()->json([
|
return response()->json([
|
||||||
'category' => [
|
'category' => [
|
||||||
'id' => $category->id,
|
'id' => $category->id,
|
||||||
'title' => $category->name,
|
'name' => $category->name,
|
||||||
'description' => $category->description,
|
'description' => $category->description,
|
||||||
'image_url' => $category->image?->url,
|
'icon_url' => $category->image?->url,
|
||||||
'type' => 'playlist',
|
'type' => 'playlist',
|
||||||
],
|
],
|
||||||
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
||||||
'sub_category' => [
|
'sub_category' => [
|
||||||
'id' => $sub->id,
|
'id' => $sub->id,
|
||||||
'title' => $sub->name,
|
'name' => $sub->name,
|
||||||
'description' => $sub->description,
|
'description' => $sub->description,
|
||||||
'image_url' => $sub->image?->url,
|
'image_url' => $sub->image?->url,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user