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:
Mekan1206
2025-12-19 21:50:17 +05:00
parent 19cc47942b
commit ba9402afb0
7 changed files with 59 additions and 26 deletions

View File

@@ -62,7 +62,8 @@ class CategoryController extends Controller
return response()->rest_paginate(
ProductResource::collection(
ProductRepository::make($request)
->queryAsFromResource($category)
// ->queryAsFromResource($category)
->applyMultiLevelFilter($category)
->applyBasicQueries()
->applyFilters()
->applySorting()