Hello, thanks for nice tutorial...
I would ask what if we make a mapper class to mapping this categories then aggregating products to categories then return the collection with some keys (products_count) instead of doing it in blade ?
thanks in advance ..
PK
Povilas Korop
✓ Link copied!
Maybe, I haven't tried with this example.
SJ
Stephenson Jacob
✓ Link copied!
is this still good in 2025?
M
Modestas
✓ Link copied!
I'm not sure what could be wrong here, as general topics still stay relevent.
Hello, thanks for nice tutorial... I would ask what if we make a mapper class to mapping this categories then aggregating products to categories then return the collection with some keys (products_count) instead of doing it in blade ? thanks in advance ..
Maybe, I haven't tried with this example.