winner relation
This commit is contained in:
parent
3b93552ec7
commit
dbb2821472
@ -20,11 +20,11 @@ class CarShowWinner extends Model
|
|||||||
|
|
||||||
public function awardVehicle()
|
public function awardVehicle()
|
||||||
{
|
{
|
||||||
return $this->hasMany(Vehicles::class, 'owner');
|
return $this->hasMany(Vehicles::class, 'id', 'vehicle');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function awardCategory()
|
public function awardCategory()
|
||||||
{
|
{
|
||||||
return $this->hasMany(CarShowCategory::class, 'category_name');
|
return $this->hasMany(CarShowCategory::class, 'id', 'category_name');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user