From 1d3abb8b8db550dbfb3781b8d5907aea672fe347 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 8 Aug 2022 21:16:39 -0400 Subject: [PATCH] score relation --- app/Models/VehicleScores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/VehicleScores.php b/app/Models/VehicleScores.php index beb6750..8e38584 100644 --- a/app/Models/VehicleScores.php +++ b/app/Models/VehicleScores.php @@ -27,6 +27,6 @@ class VehicleScores extends Model public function scoredVehicle() { - return $this->hasMany('App\Models\Vehicles', 'vehicle', 'owner'); + return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle'); } }