From 8bbd2b8624f379e08356b2fe2119435ca8853e91 Mon Sep 17 00:00:00 2001 From: Constantin Plaiasu Date: Fri, 30 Aug 2024 16:12:40 +0300 Subject: [PATCH] fix movie similar error --- app/Supports/Traits/CleanItems.php | 1 + 1 file changed, 1 insertion(+) 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 ];