F
Filament10mo ago
ericmp

How to modify fields when submitting form

I have created a resource. Inside of it, in the form, I have a toggle field which i use to hide or show some fields. but i just use it for that. the problem comes when i try to submit the create form. i get Column not found: 1054 Unknown column 'has_users' in 'field list' i dont want this field to be included in the model creation, is there a way to exclude it or something?
Forms\Components\Toggle::make('has_users')
// ->excludeFromSaving() or something like that exists???
Forms\Components\Toggle::make('has_users')
// ->excludeFromSaving() or something like that exists???
2 Replies
Want results from more Discord servers?
Add your server