From 24ac5166312ef644290982970ae8fbd849672155 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 8 Aug 2022 20:42:10 -0400 Subject: [PATCH] winner relation --- app/Models/CarShowWinner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/CarShowWinner.php b/app/Models/CarShowWinner.php index 49473d9..941c108 100644 --- a/app/Models/CarShowWinner.php +++ b/app/Models/CarShowWinner.php @@ -20,11 +20,11 @@ class CarShowWinner extends Model public function awardVehicle() { - return $this->hasMany(Vehicles::class, 'id'); + return $this->hasMany(Vehicles::class, 'vehicle'); } public function awardCategory() { - return $this->hasMany(CarShowCategory::class, 'id'); + return $this->hasMany(CarShowCategory::class, 'category'); } }