Back

How to group similar record in laravel?


narayan posted 2 months ago

I have a problem on grouping the record based on its name of the color. Here I would like to explain with example. E.g: I have ‘BLUE JEAN(3)’ with the quantity 3 & ‘BLUE JEANS MET(7)’ with the quantity 7, can we grouped together ? I want the output BLUE JEAN(10).

Note: These are already distributed in database with different ID. I have lots of colors so I need to grouped only those similar colors and need to populated for searching.

Laravel Version 5.4.

Please help, Thanks in advance


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us