custom form field without database just form

I want to make changes within a form using a field that is not in the database. Based on the toggle value, I will hide or show another field, but the toggle itself will not be in the database.

Toggle::make('kismi_teklif') // not in database just form
->live()
->onColor('success')
->offColor('danger')
->label('İhale Kısmi Teklife Açık Mı?'),

TextInput::make('kisim_sayisi')
->label('Kısım Sayısı')
->numeric()
->visible(fn (Get $get) => $get('kismi_teklif') === true),
Was this page helpful?