From e6e49ddfcb843aff97ba63c6f29d636e9bd939df Mon Sep 17 00:00:00 2001 From: Russ Long Date: Thu, 16 Mar 2023 13:16:40 -0400 Subject: [PATCH] winning bids bidder select --- app/Filament/Resources/WinningBidsResource.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Filament/Resources/WinningBidsResource.php b/app/Filament/Resources/WinningBidsResource.php index 20f9596..6ddb02c 100644 --- a/app/Filament/Resources/WinningBidsResource.php +++ b/app/Filament/Resources/WinningBidsResource.php @@ -40,7 +40,10 @@ class WinningBidsResource extends Resource ->searchable(), Select::make('winning_bidder_num') ->label('Bidder') - ->options(Bidders::all()->pluck('bidder_assigned_number', 'idbidders')) + ->options( + Bidders::orderBy('bidder_assigned_number') + ->pluck('bidder_assigned_number', 'idbidders') + )) ->searchable(), TextInput::make('winning_cost') ->label('Winning Bid')