relation updates

This commit is contained in:
Russ Long 2022-08-08 14:57:49 -04:00
parent 6191923269
commit e618bd4b56
3 changed files with 5 additions and 5 deletions

View File

@ -29,6 +29,6 @@ class CarShowCategory extends Model
} }
public function showWinner() public function showWinner()
{ {
return $this->hasMany('App\Models\CarShowWinner', 'id', 'category'); return $this->hasMany(CarShowWinner::class, 'category');
} }
} }

View File

@ -20,11 +20,11 @@ class CarShowWinner extends Model
public function awardVehicle() public function awardVehicle()
{ {
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle'); return $this->hasMany(Vehicles::class, 'vehicle');
} }
public function awardCategory() public function awardCategory()
{ {
return $this->hasMany('App\Models\CarShowCategory', 'id', 'category'); return $this->hasMany(CarShowCategory::class, 'category');
} }
} }

View File

@ -25,11 +25,11 @@ class Checkout extends Model
public function bidders() public function bidders()
{ {
return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders'); return $this->belongsTo(Bidders::class, 'idbidders');
} }
public function paymentMethod() public function paymentMethod()
{ {
return $this->hasMany('App\Models\PaymentMethods', 'payment_method', 'pm_id'); return $this->hasMany(PaymentMethods::class, 'payment_method', 'pm_id');
} }
} }