for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
function format(int $total, array $list)
{
return [
'draw' => request()->get('draw'),
'recordsTotal' => $total,
'recordsFiltered' => $total,
'data' => $list,
];
}