Skip to content

Commit

Permalink
pluck first rather than calling all
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Ullyott <ullyott.kevin@gmail.com>
  • Loading branch information
Orrison committed Jul 25, 2023
1 parent fb5b064 commit e5757cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filament/Resources/CaseItemResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function form(Form $form): Form
->label('Respondent'),
// TODO: Add Institution input
Select::make('state')
->options(CaseItemStatus::all()->pluck('name', 'id'))
->options(CaseItemStatus::pluck('name', 'id'))
->relationship('state', 'name')
->label('State')
->required(),
Expand Down

0 comments on commit e5757cf

Please sign in to comment.