fix movie similar error
This commit is contained in:
parent
4951b52fc9
commit
8bbd2b8624
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue