update
parent
aca6cf830b
commit
f41401387e
|
|
@ -31,6 +31,7 @@ public function model(array $row)
|
|||
{
|
||||
|
||||
// cek kalau row kosong jangan insert
|
||||
try {
|
||||
if (
|
||||
$row[0] === null &&
|
||||
$row[1] === null &&
|
||||
|
|
@ -74,5 +75,9 @@ public function model(array $row)
|
|||
's3_l' => $row[16],
|
||||
's3_p' => $row[17],
|
||||
]);
|
||||
} catch (\Throwable $th) {
|
||||
dd($th->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ class DatasetRepository implements DatasetRepositoryInterface
|
|||
throw new \Exception("Import {$importClass} tidak ditemukan");
|
||||
}
|
||||
|
||||
try {
|
||||
// dd($data);
|
||||
return DB::transaction(function () use ($modelClass, $importClass, $file, $data) {
|
||||
|
||||
|
|
@ -173,11 +172,6 @@ class DatasetRepository implements DatasetRepositoryInterface
|
|||
|
||||
|
||||
});
|
||||
} catch (Exception $e) {
|
||||
dd($e->getMessage());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function getChartData($modelClass,$datasetId,$templateId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue