File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Filament/Organizations/Resources/BeneficiaryResource/Pages Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,4 @@ yarn-error.log
4343/CLAUDE.md
4444/GEMINI.md
4545/opencode.json
46+ /.ai /
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public static function getBeneficiaryIdentityFormSchema(?Beneficiary $parentBene
182182 ->enum (IDType::class)
183183 ->live ()
184184 ->afterStateUpdated (function ($ state , Set $ set ) {
185- if (! $ state || IDType:: tryFrom ( $ state)? ->is(IDType::NONE )) {
185+ if (! $ state || $ state ->is (IDType::NONE )) {
186186 $ set ('id_serial ' , null );
187187 $ set ('id_number ' , null );
188188 }
@@ -197,7 +197,7 @@ public static function getBeneficiaryIdentityFormSchema(?Beneficiary $parentBene
197197 return true ;
198198 }
199199
200- return IDType:: tryFrom ( $ get ('id_type ' ) )?->is(IDType::NONE );
200+ return $ get ('id_type ' )?->is(IDType::NONE );
201201 }),
202202
203203 TextInput::make ('id_number ' )
@@ -211,7 +211,7 @@ public static function getBeneficiaryIdentityFormSchema(?Beneficiary $parentBene
211211 return true ;
212212 }
213213
214- return IDType:: tryFrom ( $ get ('id_type ' ) )?->is(IDType::NONE );
214+ return $ get ('id_type ' )?->is(IDType::NONE );
215215 }),
216216
217217 Spacer::make (),
Original file line number Diff line number Diff line change 88use App \Models \County ;
99use Closure ;
1010use Filament \Infolists \Components \TextEntry ;
11+ use Filament \Schemas \Components \Component ;
12+ use Filament \Schemas \Components \Concerns \EntanglesStateWithSingularRelationship ;
1113
12- class Location extends \ Filament \ Schemas \ Components \ Component
14+ class Location extends Component
1315{
14- use \ Filament \ Schemas \ Components \ Concerns \ EntanglesStateWithSingularRelationship;
16+ use EntanglesStateWithSingularRelationship;
1517
1618 protected string $ view = 'filament-schemas::components.grid ' ;
1719
You can’t perform that action at this time.
0 commit comments