How to fill a field after updating another field?

Hi, I got a text field name which is updating company_name and account_name when creating a resource. How to fill these fields after updating name?
2 Replies
alexanderkroneis
alexanderkroneisOP16mo ago
and as well: How do I validate based on other fields?
Forms\Components\TextInput::make('minimum_nights')
->label(__('Mindestaufenthalt'))
->required()
->numeric()
->minValue(1),
Forms\Components\TextInput::make('maximum_nights')
->label(__('Maximalaufenthalt'))
->numeric()
->minValue(???),
Forms\Components\TextInput::make('minimum_nights')
->label(__('Mindestaufenthalt'))
->required()
->numeric()
->minValue(1),
Forms\Components\TextInput::make('maximum_nights')
->label(__('Maximalaufenthalt'))
->numeric()
->minValue(???),
krekas
krekas16mo ago
Use $get and $set There are examples in docs Also you can use search here for more examples
Want results from more Discord servers?
Add your server