`->hidden()` method on TextInput field breaks app
I have this code on a filament resource:
This record has a polymorphic relation with it's "owner" which I would like to default to a user. I have created the morph map in a service provider.
This code throws a SQL error "owner_type" / "owner_id" cannot have a default value, however when I remove the hidden method on both fields, the record is created fine.
Not sure what else to try, cheers.
3 Replies
Hidden fields are not sent to the create form if I'm not mistaken. But it would help if you could add the exact error you are getting π
full stack trace
but that sounds right, if it won't let me create with hidden on. thanks