hasMany(Score::class); } public function grade(): BelongsTo { return $this->belongsTo(Grade::class); } public function teacher(): BelongsTo { return $this->belongsTo(Teacher::class); } public function subject(): BelongsTo { return $this->belongsTo(Subject::class); } }