From 401f432a96a7b8b5bf4e47808facd4ab4ee02ae0 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 8 Aug 2022 21:20:52 -0400 Subject: [PATCH] score relation --- app/Models/VehicleScores.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/VehicleScores.php b/app/Models/VehicleScores.php index 8e38584..f37b3ba 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('App\Models\Judges', 'judge', 'id'); + return $this->belongsTo(Judges::class, 'judge_number'); } public function scoredVehicle() { - return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle'); + return $this->hasMany(Vehicles::class, 'owner'); } }