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 .= '';