From 72af40a36490cc69188d432689e864b48441c63e Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 23 Dec 2018 09:02:54 -0500 Subject: [PATCH] Convert some helpers to using models --- app/helpers.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index cfc2087..977321f 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -3,16 +3,20 @@ namespace App; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; +use App\Models\Bidders; +use App\Models\Items; class BidderSelectList { public static function BidderShowNumbers() { - $bidder_num_results = DB::select("SELECT - * - FROM bidders - ORDER BY bidder_assigned_number - "); + //$bidder_num_results = DB::select("SELECT + //* + //FROM bidders + //ORDER BY bidder_assigned_number + //"); + $bidder_num_results = Bidders::orderBy('bidder_assigned_number') + ->get(); $bidder_num = ''; foreach($bidder_num_results as $bidder_num_result){ $bidder_num .= '';