relation updates
This commit is contained in:
parent
6191923269
commit
e618bd4b56
@ -29,6 +29,6 @@ class CarShowCategory extends Model
|
||||
}
|
||||
public function showWinner()
|
||||
{
|
||||
return $this->hasMany('App\Models\CarShowWinner', 'id', 'category');
|
||||
return $this->hasMany(CarShowWinner::class, 'category');
|
||||
}
|
||||
}
|
||||
|
@ -20,11 +20,11 @@ class CarShowWinner extends Model
|
||||
|
||||
public function awardVehicle()
|
||||
{
|
||||
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
|
||||
return $this->hasMany(Vehicles::class, 'vehicle');
|
||||
}
|
||||
|
||||
public function awardCategory()
|
||||
{
|
||||
return $this->hasMany('App\Models\CarShowCategory', 'id', 'category');
|
||||
return $this->hasMany(CarShowCategory::class, 'category');
|
||||
}
|
||||
}
|
||||
|
@ -25,11 +25,11 @@ class Checkout extends Model
|
||||
|
||||
public function bidders()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders');
|
||||
return $this->belongsTo(Bidders::class, 'idbidders');
|
||||
}
|
||||
|
||||
public function paymentMethod()
|
||||
{
|
||||
return $this->hasMany('App\Models\PaymentMethods', 'payment_method', 'pm_id');
|
||||
return $this->hasMany(PaymentMethods::class, 'payment_method', 'pm_id');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user