diff --git a/app/Models/CarShowCategory.php b/app/Models/CarShowCategory.php index 63d9a28..1fd5904 100644 --- a/app/Models/CarShowCategory.php +++ b/app/Models/CarShowCategory.php @@ -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'); } } diff --git a/app/Models/CarShowWinner.php b/app/Models/CarShowWinner.php index 5a6efb9..941c108 100644 --- a/app/Models/CarShowWinner.php +++ b/app/Models/CarShowWinner.php @@ -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'); } } diff --git a/app/Models/Checkout.php b/app/Models/Checkout.php index 5dce4b3..f30308f 100644 --- a/app/Models/Checkout.php +++ b/app/Models/Checkout.php @@ -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'); } }