Commit f5bc11a3 by Siti Aisah

fix get unit penelaah

parent f6f5fe63
...@@ -9,7 +9,7 @@ class SakuController extends Controller ...@@ -9,7 +9,7 @@ class SakuController extends Controller
{ {
public function index() { public function index() {
$penelaah = DB::table('tr_penelaah')->get(); $penelaah = DB::table('tr_penelaah')->orderBy('id_pengajuan')->get();
$data = [ $data = [
'penelaah' => $penelaah 'penelaah' => $penelaah
......
...@@ -108,7 +108,7 @@ public function store(Request $request){ ...@@ -108,7 +108,7 @@ public function store(Request $request){
'nik' => $sdm->noktp, 'nik' => $sdm->noktp,
'nama' => $isdm->namalengkap, 'nama' => $isdm->namalengkap,
'nip' => $isdm->nip, 'nip' => $isdm->nip,
'unit' =>$isdm->namaparentsatker 'unit' => $isdm->namaparentsatker
]; ];
Penelaah::query()->create($saku); Penelaah::query()->create($saku);
......
...@@ -20,6 +20,7 @@ class Penelaah extends Model ...@@ -20,6 +20,7 @@ class Penelaah extends Model
'id_pengajuan', 'id_pengajuan',
'nik', 'nik',
'nama', 'nama',
'nip' 'nip',
'unit'
]; ];
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment