Convert helpers

This commit is contained in:
Russ Long 2018-12-23 09:25:00 -05:00
parent 6e618d048a
commit 89da41c7f6
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class Checkout extends Model
public function bidders() public function bidders()
{ {
return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders')->orderBy('bidder_assigned_number', 'asc'); return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders');
} }
public function paymentMethod() public function paymentMethod()

View File

@ -26,6 +26,7 @@ class CheckoutBidderSelectList
public static function CheckoutBidderShowNumbers() public static function CheckoutBidderShowNumbers()
{ {
$checkout_bidder_num_results = Checkout::with('bidders') $checkout_bidder_num_results = Checkout::with('bidders')
->orderBy('bidders.bidder_assigned_number')
->get(); ->get();
$checkout_bidder_num = '<option disabled selected hidden value="">choose...</option>'; $checkout_bidder_num = '<option disabled selected hidden value="">choose...</option>';
foreach($checkout_bidder_num_results as $checkout_bidder_num_result){ foreach($checkout_bidder_num_results as $checkout_bidder_num_result){