score relation
This commit is contained in:
parent
1d3abb8b8d
commit
401f432a96
@ -22,11 +22,11 @@ class VehicleScores extends Model
|
|||||||
|
|
||||||
public function judge()
|
public function judge()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\Judges', 'judge', 'id');
|
return $this->belongsTo(Judges::class, 'judge_number');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scoredVehicle()
|
public function scoredVehicle()
|
||||||
{
|
{
|
||||||
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
|
return $this->hasMany(Vehicles::class, 'owner');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user