convert bidderlist view

This commit is contained in:
Russ Long 2018-12-23 09:54:54 -05:00
parent f225f05638
commit 7499abfef2

View File

@ -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]);
}