using associative array for table/form schema array
is there any concern in using associative array for form/table schema, eg:
and then I will have some api to customize the schema fields, eg:
this may also extend to any methods in filament that return array such as
getHeaderActions
array etc
is this a pattern that Filament would advise against with?Solution:Jump to solution
i cant imagine any immediate issues, but i cannot guarantee that the key will not be lost at some point in the form process and replaced with a nunber
4 Replies
Hi @Dan Harrin sorry for pinging you but I think the post is pushed far too low for you to notice. And I think this would be best if can be answered by core/you
Solution
i cant imagine any immediate issues, but i cannot guarantee that the key will not be lost at some point in the form process and replaced with a nunber
if it works for you, i think its safe to continue
In my potential use case I think the key only matters before filament process the schema, so I guess should be fine until it doesn’t 😂