コード例 #1
0
 public function reject($id)
 {
     $rencanaKarir = RencanaKarir::findOrFail($id);
     $rencanaKarir->approved = 2;
     // 2 = rejected
     $rencanaKarir->save();
     return $rencanaKarir;
 }
コード例 #2
0
 public function showRencanaKarir($user_id)
 {
     $rencanaKarir = RencanaKarir::with(['diklat_jk_pendek'])->where('user_id', $user_id)->paginate(10);
     return $rencanaKarir;
 }