From 7499abfef2896a600abe0780f47da12622464fe0 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 23 Dec 2018 09:54:54 -0500 Subject: [PATCH] convert bidderlist view --- app/Http/Controllers/PagesController.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 3d97ed9..c24e41c 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -25,11 +25,10 @@ class PagesController extends Controller public function bidderlist() { - $bidderlist_results = DB::select("SELECT - * - FROM bidders - ORDER BY bidder_assigned_number ASC, bidder_fname ASC - "); + $bidderlist_results = Bidders::orderBy('bidder_assigned_number', 'asc') + ->orderBy('bidder_lname', 'asc') + ->orderBy('bidder_fname', 'asc') + ->get(); return view('bidderlist', ['bidderlist_results' => $bidderlist_results]); }