main
Ilham Wara Nugroho 2025-12-04 16:05:30 +07:00
parent 5a4fd5cc3f
commit 1fc99747b1
4 changed files with 1 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -31,7 +31,7 @@ public function model(array $row)
{ {
// cek kalau row kosong jangan insert // cek kalau row kosong jangan insert
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null && $row[7] === null && $row[8] === null) { if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null && $row[7] === null) {
return null; // baris kosong dilewati return null; // baris kosong dilewati
} }
return new DatasetTable2([ return new DatasetTable2([
@ -44,7 +44,6 @@ public function model(array $row)
'luas_lahan_perkebunan' => $row[5], 'luas_lahan_perkebunan' => $row[5],
'luas_lahan_hutan' => $row[6], 'luas_lahan_hutan' => $row[6],
'luas_lahan_badan_air' => $row[7], 'luas_lahan_badan_air' => $row[7],
'created_by' => $row[8],
]); ]);
} }
} }

BIN
public/.DS_Store vendored

Binary file not shown.

Binary file not shown.