diff --git a/app/Filament/Resources/PeoplesChoiceResource.php b/app/Filament/Resources/PeoplesChoiceResource.php index 9e975e4..9e44fa6 100644 --- a/app/Filament/Resources/PeoplesChoiceResource.php +++ b/app/Filament/Resources/PeoplesChoiceResource.php @@ -33,7 +33,7 @@ class PeoplesChoiceResource extends Resource ->schema([ Select::make('vehicle') ->label('Vehicle') - ->options(Vehicles::all()->orderBy('owner', 'asc')->pluck('owner', 'id')) + ->options(Vehicles::all()->sortBy('owner', 'asc')->pluck('owner', 'id')) ->searchable(), TextInput::make('pc_count'), ]);