From 93fc39731fde93132812934e3256b88a9c691b4b Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 23 Dec 2018 09:33:40 -0500 Subject: [PATCH] convert helpers --- app/helpers.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index f2ce33f..28ed6f7 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -25,9 +25,10 @@ class CheckoutBidderSelectList { public static function CheckoutBidderShowNumbers() { - $checkout_bidder_num_results = Checkout:://with('bidders') - get(); - $checkout_bidder_num_results = $checkout_bidder_num_results->bidders->sortBy('bidder_assigned_number'); + $checkout_bidder_num_results = Checkout::join('bidders', 'checkout.winning_bidder_num', '=', 'bidders.idbidders') + ->orderBy('bidders.bidder_assigned_number', 'asc') + ->get(); + $checkout_bidder_num = ''; foreach($checkout_bidder_num_results as $checkout_bidder_num_result){ $checkout_bidder_num .= '';