From 33c1f99c66a02ed2e9f43717da37207932787f59 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 23 Dec 2018 09:37:37 -0500 Subject: [PATCH] convert helpers --- app/helpers.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index e123f25..378f990 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -6,6 +6,7 @@ use Illuminate\Support\Facades\DB; use App\Models\Bidders; use App\Models\Items; use App\Models\Checkout; +use App\Models\PaymentMethods; class BidderSelectList { @@ -54,11 +55,8 @@ class PaymentMethodSelectList { public static function PaymentShowMethods() { - $payment_method_results = DB::select("SELECT - * - FROM payment_methods - ORDER BY pm_name - "); + $payment_method_results = PaymentMethods::orderBy('pm_name') + ->get(); $payment_methods = ''; foreach($payment_method_results as $payment_method_result){ $payment_methods .= '';