From d37d3a105102265292e8ef9035a088bd5775a2a9 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 23 Dec 2018 09:41:57 -0500 Subject: [PATCH] convert helpers --- app/helpers.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index 378f990..02e5c03 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -69,13 +69,9 @@ class WinningBidSelectList { public static function WinningBidShowNumbers() { - $winning_bid_num_results = DB::select("SELECT - * - FROM winning_bids - INNER JOIN items AS items - ON winning_bids.winning_item_num = items.iditems - ORDER BY items.item_assigned_num - "); + $winning_bid_num_results = WinningBids::join('items', 'winning_bids.winning_item_num', '=', 'items.iditems') + ->orderBy('items.item_assigned_num') + ->get(); $winning_bid_num = ''; foreach($winning_bid_num_results as $winning_bid_num_result){ $winning_bid_num .= '';