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