From 71b911a7ab98820ad164b0a6e087d8c6eb63da31 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Mon, 24 Dec 2018 13:14:39 -0500 Subject: [PATCH] convert checkout complete list --- app/Http/Controllers/PagesController.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 97f67f7..4d6f702 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -143,15 +143,10 @@ class PagesController extends Controller public function checkoutCompleteList() { - $checkout_complete_results = DB::select("SELECT - checkout.*, - bidders.* - FROM checkout - INNER JOIN bidders AS bidders - ON checkout.bidder_num=bidders.idbidders - GROUP BY checkout.bidder_num - ORDER BY bidders.bidder_assigned_number ASC - "); + $checkout_complete_results = Checkout::join('bidders', 'checkout.bidder_num', '=', 'bidders.idbidders') + ->groupBy('bidder_num') + ->orderBy('bidders.bider_assigned_number', 'asc') + ->get(); return view('checkout_complete_list', ['checkout_complete_results' => $checkout_complete_results]); }