diff --git a/app/Supports/Traits/CleanItems.php b/app/Supports/Traits/CleanItems.php index 81c85ea..9d59d8c 100644 --- a/app/Supports/Traits/CleanItems.php +++ b/app/Supports/Traits/CleanItems.php @@ -227,6 +227,7 @@ public function formatApiResponse(Object $data, $with_pagination = true, $route 'slug' => Str::slug($item->title ?? $item->name), 'year' => Carbon::parse($item->release_date ?? '')->format('Y'), 'route' => isset($item->title) ? 'movie' : 'show', + 'type' => isset($item->title) ? 'movie' : 'show', // 'count' => $key + 1 ];