update
parent
8f86378bfe
commit
715c0ac556
|
|
@ -52,10 +52,8 @@ class DatasetRepository implements DatasetRepositoryInterface
|
|||
throw new \Exception("Import {$importClass} tidak ditemukan");
|
||||
}
|
||||
|
||||
// dd($data);
|
||||
return DB::transaction(function () use ($modelClass, $importClass, $file, $data) {
|
||||
|
||||
try {
|
||||
DB::transaction(function () use ($modelClass, $importClass, $file, $data) {
|
||||
$keyId = decode_id($data['secure_id']);
|
||||
$json = [];
|
||||
$filePath = null;
|
||||
|
|
@ -167,6 +165,7 @@ class DatasetRepository implements DatasetRepositoryInterface
|
|||
}
|
||||
|
||||
return $masterModel;
|
||||
});
|
||||
}catch (\Maatwebsite\Excel\Validators\ValidationException $e) {
|
||||
$failures = $e->failures();
|
||||
|
||||
|
|
@ -182,9 +181,6 @@ class DatasetRepository implements DatasetRepositoryInterface
|
|||
} catch (Exception $e) {
|
||||
dd($e->getMessage());
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public function getChartData($modelClass,$datasetId,$templateId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue