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
{
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(),
]);
}