| @@ 43-55 (lines=13) @@ | ||
| 40 | protected function insertData() |
|
| 41 | { |
|
| 42 | /* silahkan di rubah sesuai kebutuhan */ |
|
| 43 | foreach($this->readCSV() as $data){ |
|
| 44 | ||
| 45 | ||
| 46 | $this->model->create([ |
|
| 47 | 'nama' => $data['nama'], |
|
| 48 | 'instansi' => $data['instansi'], |
|
| 49 | 'nilai' => $data['nilai'], |
|
| 50 | 'user_id' => $data['user_id'], |
|
| 51 | ||
| 52 | ]); |
|
| 53 | ||
| 54 | ||
| 55 | } |
|
| 56 | ||
| 57 | if($this->textInfo){ |
|
| 58 | echo "============[DATA]============\n"; |
|
| @@ 43-56 (lines=14) @@ | ||
| 40 | protected function insertData() |
|
| 41 | { |
|
| 42 | /* silahkan di rubah sesuai kebutuhan */ |
|
| 43 | foreach($this->readCSV() as $data){ |
|
| 44 | ||
| 45 | ||
| 46 | $this->model->create([ |
|
| 47 | 'nomor_un' => $data['nomor_un'], |
|
| 48 | 'master_sktm_id' => $data['master_sktm_id'], |
|
| 49 | 'no_sktm' => $data['no_sktm'], |
|
| 50 | 'nilai' => $data['nilai'], |
|
| 51 | 'user_id' => $data['user_id'], |
|
| 52 | ||
| 53 | ]); |
|
| 54 | ||
| 55 | ||
| 56 | } |
|
| 57 | ||
| 58 | if($this->textInfo){ |
|
| 59 | echo "============[DATA]============\n"; |
|