This commit is contained in:
Mekan1206
2026-05-04 13:42:09 +05:00
parent 79b10b20ea
commit e227b24de5

View File

@@ -27,11 +27,7 @@ class FilterController extends Controller
public function index(FilterIndexRequest $request): JsonResponse public function index(FilterIndexRequest $request): JsonResponse
{ {
return response()->rest([ return response()->rest([
'categories' => $this->categories()->map(fn ($category) => [ 'categories' => $this->categories(),
'id' => $category->id,
'parent_id' => $category->parent_id,
'name' => $category->name,
]),
'brands' => $this->brands(), 'brands' => $this->brands(),
]); ]);
} }