From b9bef5a3850cd1e3bb34ea9566a4f30664fef5a4 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sun, 23 Dec 2018 09:36:03 -0500 Subject: [PATCH] convert helpers --- app/helpers.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index d403fa8..e123f25 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -41,11 +41,8 @@ class ItemSelectList { public static function ItemShowNumbers() { - $item_num_results = DB::select("SELECT - * - FROM items - ORDER BY item_assigned_num - "); + $item_num_results = Items::orderBy('item_assigned_num') + ->get(); $item_nums = ''; foreach($item_num_results as $item_num_result){ $item_nums .= '';