score relation

This commit is contained in:
Russ Long 2022-08-08 21:21:39 -04:00
parent 401f432a96
commit 3382de51d5

View File

@ -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');
}
}