diff --git a/app/Models/VehicleScores.php b/app/Models/VehicleScores.php index f37b3ba..8e38584 100644 --- a/app/Models/VehicleScores.php +++ b/app/Models/VehicleScores.php @@ -22,11 +22,11 @@ class VehicleScores extends Model public function judge() { - return $this->belongsTo(Judges::class, 'judge_number'); + return $this->belongsTo('App\Models\Judges', 'judge', 'id'); } public function scoredVehicle() { - return $this->hasMany(Vehicles::class, 'owner'); + return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle'); } }