From 87be8975c089a916301cfbbaaaf41296f99901f8 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 8 Aug 2022 20:42:37 -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 941c108..6aa6aac 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'); + return $this->hasMany(CarShowCategory::class, 'category_name'); } }