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'); } }