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