relationship update

This commit is contained in:
2022-08-08 15:01:38 -04:00
parent e618bd4b56
commit 5a330c6cda
7 changed files with 12 additions and 12 deletions

View File

@ -24,21 +24,21 @@ class Vehicles extends Model
public function vehicleType()
{
return $this->belongsTo('App\Models\CarShowCategory', 'type', 'id');
return $this->belongsTo(CarShowCategory::class, 'type', 'id');
}
public function vehicleOwner()
{
return $this->belongsTo('App\Models\Bidders', 'owner', 'bidder_assigned_number');
return $this->belongsTo(Bidders::class, 'owner', 'bidder_assigned_number');
}
public function vehicleScores()
{
return $this->hasMany('App\Models\VechicleScores', 'id', 'vehicle');
return $this->hasMany(VechicleScores::class, 'vehicle');
}
public function CarShowWinner()
{
return $this->belongsTo('App\Models\CarShowWinner', 'id', 'vehicle');
return $this->belongsTo(CarShowWinner::class, 'vehicle');
}
}