relationship update
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user