WIP
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user