This commit is contained in:
Mekan1206 committed 2026-05-04 13:42:09 +05:00
1 parent 79b10b20ea
commit e227b24de5
1 file changed
+1 -5
@@ -27,11 +27,7 @@ public function __construct(
public function index(FilterIndexRequest $request): JsonResponse
{
return response()->rest([
'categories' => $this->categories()->map(fn ($category) => [
'id' => $category->id,
'parent_id' => $category->parent_id,
'name' => $category->name,
]),
'categories' => $this->categories(),
'brands' => $this->brands(),
]);
}