예제 #1
0
 public function showJson(Exam $exam)
 {
     $json = ['EXAM' => $exam->toArray(), 'QUESTIONS' => $exam->questions->toArray()];
     return response()->json($json);
 }