From e5757cfae0d9b8e9bfa6ec3bf6eaf6fee3bf8ed6 Mon Sep 17 00:00:00 2001 From: Kevin Ullyott Date: Tue, 25 Jul 2023 11:46:58 -0400 Subject: [PATCH] pluck first rather than calling all Signed-off-by: Kevin Ullyott --- app/Filament/Resources/CaseItemResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Resources/CaseItemResource.php b/app/Filament/Resources/CaseItemResource.php index 0420c2bcca..95a26d525b 100644 --- a/app/Filament/Resources/CaseItemResource.php +++ b/app/Filament/Resources/CaseItemResource.php @@ -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(),