From dbb282147253df7497b151f1fb8c91dcc2b1b776 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 8 Aug 2022 20:45:03 -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 1651bc3..6f416de 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, 'owner'); + return $this->hasMany(Vehicles::class, 'id', 'vehicle'); } public function awardCategory() { - return $this->hasMany(CarShowCategory::class, 'category_name'); + return $this->hasMany(CarShowCategory::class, 'id', 'category_name'); } }