Create and Edit Users Custom input
In the createUsers form, the password field is mandatory, I want the mandatory field to disappear in editUsers.
4 Replies
->hiddenOn(‘edit’)
I want the ->required() in the password inputs to not appear when editing. With ->hiddenOn() the input password disappears too, and I don't want that to happen]
->required(fn (string $operation): bool => $operation === 'create')
thanks ❤️