public function reject($id)
 {
     $rencanaKarir = RencanaKarir::findOrFail($id);
     $rencanaKarir->approved = 2;
     // 2 = rejected
     $rencanaKarir->save();
     return $rencanaKarir;
 }
 public function editRencanaKarir($user_id)
 {
     \Eloquent::unguard();
     return \Input::get('id');
     $rencanaKarir = RencanaKarir::findOrFail(\Input::get('id'));
     $rencanaKarir->update(\Input::except(['diklat_jk_pendek', 'diklat_jk_menengah', 'diklat_jk_panjang']));
     foreach (\Input::get('diklat_jk_pendek') as $diklat) {
         $rencanaKarir->diklat_jk_pendek()->attach($diklat);
     }
     foreach (\Input::get('diklat_jk_menengah') as $diklat) {
         $rencanaKarir->diklat_jk_menengah()->attach($diklat);
     }
     foreach (\Input::get('diklat_jk_panjang') as $diklat) {
         $rencanaKarir->diklat_jk_panjang()->attach($diklat);
     }
     $rencanaKarir->save();
     return $rencanaKarir;
 }