예제 #1
0
 public function score(Student $student, Quiz $quiz)
 {
     return $student->scores()->whereQuizId($quiz->id)->first()->toJson();
 }