winner relation
This commit is contained in:
parent
acf63aeb46
commit
24ac516631
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user