Beispiel #1
0
 public function jawaban_asli($id, $id_soal)
 {
     $jawaban = Soal::where('id', '=', $id_soal)->get();
     return $jawaban;
 }
Beispiel #2
0
 public function getMatpelId($matpelid)
 {
     $data = Soal::where('mata_pelajaran_id', '=', $matpelid)->get();
     if (is_null($data)) {
         return Response::json("not found", 404);
     }
     return Response::json($data, 200);
 }