hasMany(Score::class); } public function grades(): BelongsTo { return $this->belongsTo(Grade::class); } public function teachers(): BelongsTo { return $this->belongsTo(Teacher::class); } public function subjects(): BelongsTo { return $this->belongsTo(Subject::class); } }