From acf63aeb46567a138d8249154a807a67615d568b Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 8 Aug 2022 20:39:33 -0400 Subject: [PATCH] winner relation --- app/Models/CarShowWinner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/CarShowWinner.php b/app/Models/CarShowWinner.php index 928dd7c..49473d9 100644 --- a/app/Models/CarShowWinner.php +++ b/app/Models/CarShowWinner.php @@ -25,6 +25,6 @@ class CarShowWinner extends Model public function awardCategory() { - return $this->hasMany(CarShowCategory::class, 'category_name'); + return $this->hasMany(CarShowCategory::class, 'id'); } }