update
parent
5a4fd5cc3f
commit
1fc99747b1
|
|
@ -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],
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue