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???
Was this page helpful?