vehicle sort

This commit is contained in:
2022-08-07 13:34:06 -04:00
parent 7d4964e268
commit 3c6097a5b2
5 changed files with 133 additions and 34 deletions

View File

@ -33,8 +33,9 @@ class PeoplesChoiceResource extends Resource
->schema([
Select::make('vehicle')
->label('Vehicle')
->options(Vehicles::all()->pluck('owner', 'id')->sortBy('owner'))
->searchable(),
->options(Vehicles::all()->pluck('owner', 'id'))
->searchable()
->orderable('owner'),
TextInput::make('pc_count'),
]);
}