diff --git a/app/Models/Items.php b/app/Models/Items.php index f6a0f6a..677ab21 100644 --- a/app/Models/Items.php +++ b/app/Models/Items.php @@ -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'); } } diff --git a/app/Models/Judges.php b/app/Models/Judges.php index 7adb29d..e764af9 100644 --- a/app/Models/Judges.php +++ b/app/Models/Judges.php @@ -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'); } } diff --git a/app/Models/PaymentMethods.php b/app/Models/PaymentMethods.php index f41a829..735919a 100644 --- a/app/Models/PaymentMethods.php +++ b/app/Models/PaymentMethods.php @@ -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'); } } diff --git a/app/Models/PeoplesChoice.php b/app/Models/PeoplesChoice.php index 6a1a34f..bd000a9 100644 --- a/app/Models/PeoplesChoice.php +++ b/app/Models/PeoplesChoice.php @@ -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'); } } diff --git a/app/Models/VehicleScores.php b/app/Models/VehicleScores.php index 8e38584..a7012e6 100644 --- a/app/Models/VehicleScores.php +++ b/app/Models/VehicleScores.php @@ -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'); } } diff --git a/app/Models/Vehicles.php b/app/Models/Vehicles.php index f6344a2..e250b5f 100644 --- a/app/Models/Vehicles.php +++ b/app/Models/Vehicles.php @@ -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'); } } diff --git a/app/Models/WinningBids.php b/app/Models/WinningBids.php index 6cf890a..e532bf8 100644 --- a/app/Models/WinningBids.php +++ b/app/Models/WinningBids.php @@ -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'); } }