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