From 89da41c7f62381cd92fe40ca9b8148349b0dea6d Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 23 Dec 2018 09:25:00 -0500 Subject: [PATCH] Convert helpers --- app/Models/Checkout.php | 2 +- app/helpers.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Checkout.php b/app/Models/Checkout.php index d97d05c..a0ea86f 100644 --- a/app/Models/Checkout.php +++ b/app/Models/Checkout.php @@ -18,7 +18,7 @@ class Checkout extends Model public function bidders() { - return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders')->orderBy('bidder_assigned_number', 'asc'); + return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders'); } public function paymentMethod() diff --git a/app/helpers.php b/app/helpers.php index 9f799ad..b61fe40 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -26,6 +26,7 @@ class CheckoutBidderSelectList public static function CheckoutBidderShowNumbers() { $checkout_bidder_num_results = Checkout::with('bidders') + ->orderBy('bidders.bidder_assigned_number') ->get(); $checkout_bidder_num = ''; foreach($checkout_bidder_num_results as $checkout_bidder_num_result){