belongsTo(Student::class, 'test_student_id'); } public function trainingStudent() { return $this->belongsTo(Student::class, 'training_data_id'); } public function weightCalculation() { return $this->hasOne(WeightCalculation::class, 'distance_calculation_id'); } }