79433099

Date: 2025-02-12 12:49:10
Score: 1.5
Natty:
Report link

You can try flatten() method on a collection you can give depth level as argument flatten(2)

collect($linedata)->groupBy('id')->values()->flatten()->all();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zeeshan Haider