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