orderBy('items.item_assigned_num') ->get(); $winning_bid_num = 'choose...'; foreach ($winning_bid_num_results as $winning_bid_num_result) { $winning_bid_num .= '' . $winning_bid_num_result->item_assigned_num . ' - ' . $winning_bid_num_result->item_desc .''; } return $winning_bid_num; } }