main
Ilham Wara Nugroho 2026-03-11 10:23:58 +07:00
parent a00f08cbd4
commit 348acd296d
1 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,9 @@ class DatasetController extends Controller
{
$id = $request->query('id');
$keyId = decode_id($id);
$limit = $request->get('limit', 10);
$offset = $request->get('offset', 0);
$item = Dataset::find($keyId); // atau pakai ->pluck(), ->find(), dll
//
$_data = [];
@ -59,6 +62,8 @@ class DatasetController extends Controller
->get()
->groupBy('row_id');
$data = $data->slice($offset, $limit);
foreach ($data as $rowId => $rows) {
$rowData = [