Skip to content

Commit 7692483

Browse files
committed
update make resource for category actions
1 parent 41f6716 commit 7692483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/CategoryController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function findBySlug(string $slug): JsonResponse|RedirectResponse|JsonReso
6969

7070
return $this
7171
->httpResponse()
72-
->setData(new ListCategoryResource($category))
72+
->setData(ListCategoryResource::make($category))
7373
->toApiResponse();
7474
}
7575
}

0 commit comments

Comments
 (0)