public function apiPegawai()
 {
     $data = Pegawai::orderBy('id_kepegawaian', 'desc')->get();
     return response()->json($data);
 }
Пример #2
0
 public function apiPegawai()
 {
     $data = Pegawai::orderBy('id_user')->get();
     return response()->json($data);
 }