relation updates

This commit is contained in:
2022-08-08 14:57:49 -04:00
parent 6191923269
commit e618bd4b56
3 changed files with 5 additions and 5 deletions

View File

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