From 0a826b5dfd0a8092e17325a20e639f09ffa75bd1 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 8 Aug 2022 20:47:01 -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 6f416de..5a6efb9 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', 'vehicle'); + return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle'); } public function awardCategory() { - return $this->hasMany(CarShowCategory::class, 'id', 'category_name'); + return $this->hasMany('App\Models\CarShowCategory', 'id', 'category'); } }