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