winner relation

This commit is contained in:
Russ Long 2022-08-08 20:47:01 -04:00
parent dbb2821472
commit 0a826b5dfd

View File

@ -20,11 +20,11 @@ class CarShowWinner extends Model
public function awardVehicle() public function awardVehicle()
{ {
return $this->hasMany(Vehicles::class, 'id', 'vehicle'); return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
} }
public function awardCategory() public function awardCategory()
{ {
return $this->hasMany(CarShowCategory::class, 'id', 'category_name'); return $this->hasMany('App\Models\CarShowCategory', 'id', 'category');
} }
} }