winner relation

This commit is contained in:
Russ Long 2022-08-08 20:42:10 -04:00
parent acf63aeb46
commit 24ac516631

View File

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