FilamentF
Filament2y ago
Igor

conditional configureusing

I am using configureUsing function to set up all my text inputs to uppercase. However, this causes an issue with the reset password feature, as the email field also becomes uppercase and the database is unable to find any email due to the case sensitivity. Is it possible to set all inputs to uppercase except for the email field?
Solution
check it in the configureUsing

->configureUsing(function (TextInput $input) {
    if (! $input->isEmail()) {
        //...
    }
})
Was this page helpful?