79343821

Date: 2025-01-09 19:37:41
Score: 1.5
Natty:
Report link

My 2 cents, I just did it today:

DB::table('my_table')->get()->map(fn($item) => (array) $item)->toArray();

This will return an array of rows, where each row is an array itself.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Erick de Azevedo Lima