relationship update
This commit is contained in:
parent
e618bd4b56
commit
5a330c6cda
@ -23,6 +23,6 @@ class Items extends Model
|
||||
|
||||
public function winningBids()
|
||||
{
|
||||
return $this->belongsTo('App\Models\WinningBids', 'iditems', 'winning_item_num');
|
||||
return $this->belongsTo(WinningBids::class, 'iditems', 'winning_item_num');
|
||||
}
|
||||
}
|
||||
|
@ -20,6 +20,6 @@ class Judges extends Model
|
||||
|
||||
public function vehicleScores()
|
||||
{
|
||||
return $this->hasMany('App\Models\VehicleScores', 'judge', 'id');
|
||||
return $this->hasMany(VehicleScores::class, 'judge', 'id');
|
||||
}
|
||||
}
|
||||
|
@ -20,6 +20,6 @@ class PaymentMethods extends Model
|
||||
|
||||
public function checkout()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Checkout', 'payment_method', 'pm_id');
|
||||
return $this->belongsTo(Checkout::class, 'payment_method', 'pm_id');
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,6 @@ class PeoplesChoice extends Model
|
||||
|
||||
public function vehicles()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Vehicles', 'vehicle', 'id');
|
||||
return $this->belongsTo(Vehicles::class, 'vehicle', 'id');
|
||||
}
|
||||
}
|
||||
|
@ -22,11 +22,11 @@ class VehicleScores extends Model
|
||||
|
||||
public function judge()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Judges', 'judge', 'id');
|
||||
return $this->belongsTo(Judges::class, 'judge', 'id');
|
||||
}
|
||||
|
||||
public function scoredVehicle()
|
||||
{
|
||||
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
|
||||
return $this->hasMany(Vehicles::class, 'vehicle');
|
||||
}
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
@ -22,11 +22,11 @@ class WinningBids extends Model
|
||||
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany('App\Models\Items', 'iditems', 'winning_item_num');
|
||||
return $this->hasMany(Items::class, 'iditems', 'winning_item_num');
|
||||
}
|
||||
|
||||
public function bidders()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Bidders', 'winning_bidder_num', 'idbidders');
|
||||
return $this->belongsTo(Bidders::class, 'winning_bidder_num', 'idbidders');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user