update
parent
e20372be23
commit
1fdd616bbe
|
|
@ -75,6 +75,13 @@ class FrontController extends Controller
|
||||||
->orderBy('ms_tabel_data_kolom_id')
|
->orderBy('ms_tabel_data_kolom_id')
|
||||||
->get()
|
->get()
|
||||||
->groupBy('row_id');
|
->groupBy('row_id');
|
||||||
|
|
||||||
|
|
||||||
|
$limit = $request->input('limit', 10);
|
||||||
|
$offset = $request->input('offset', 0);
|
||||||
|
|
||||||
|
$total = $data->count();
|
||||||
|
$data = $data->slice($offset, $limit);
|
||||||
|
|
||||||
foreach ($data as $rowId => $rows) {
|
foreach ($data as $rowId => $rows) {
|
||||||
|
|
||||||
|
|
@ -89,7 +96,10 @@ class FrontController extends Controller
|
||||||
$_data[] = $rowData;
|
$_data[] = $rowData;
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json($_data);
|
return response()->json([
|
||||||
|
'total' => $total,
|
||||||
|
'rows' => array_values($_data)
|
||||||
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
function datasetTambahan_detail($id) {
|
function datasetTambahan_detail($id) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue