winner relation

This commit is contained in:
Russ Long 2022-08-08 20:45:03 -04:00
parent 3b93552ec7
commit dbb2821472

View File

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