diff --git a/app/helpers.php b/app/helpers.php index cfc2087..977321f 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -3,16 +3,20 @@ namespace App; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; +use App\Models\Bidders; +use App\Models\Items; class BidderSelectList { public static function BidderShowNumbers() { - $bidder_num_results = DB::select("SELECT - * - FROM bidders - ORDER BY bidder_assigned_number - "); + //$bidder_num_results = DB::select("SELECT + //* + //FROM bidders + //ORDER BY bidder_assigned_number + //"); + $bidder_num_results = Bidders::orderBy('bidder_assigned_number') + ->get(); $bidder_num = ''; foreach($bidder_num_results as $bidder_num_result){ $bidder_num .= '';