/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // $ppk = Ppk::find($id); $data = array('value' => $ppk, 'satuankerja' => SatuanKerja::DropDownSatker()); return Response::json($data); }
public function getSatuanKerja() { $data = array('dropdown' => SatuanKerja::DropDownSatker()); return Response::json($data); }