Refactor helper functions, improve product filtering, and update seeders. Adjusted SMS sending logic for better readability, implemented multi-level category filtering in ProductRepository, and commented out old data seeding in ChannelTableSeeder and UserTableSeeder for a cleaner setup.
This commit is contained in:
1 parent
19cc47942b
commit
ba9402afb0
7 files changed
+59
-26
No files matched your search
@@ -62,7 +62,8 @@ public function products(BasicProductIndexRequest $request, Category $category):
|
||||
return response()->rest_paginate(
|
||||
ProductResource::collection(
|
||||
ProductRepository::make($request)
|
||||
->queryAsFromResource($category)
|
||||
// ->queryAsFromResource($category)
|
||||
->applyMultiLevelFilter($category)
|
||||
->applyBasicQueries()
|
||||
->applyFilters()
|
||||
->applySorting()
|
||||
|
||||
Reference in new issue
Block a user