© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
10 replies
Somebody

how to change input text value before unique validation?

before do unique validation i want to standardise the text input value like lowercase it.etc. How do i do so before apply unique validation? in a filament text input?

Something like this if it is a normal form request


function prepareForValidation(

$this->mobile_phone = (new PhoneNumber($this->mobile_phone, 'US')->formatE164();

}
function prepareForValidation(

$this->mobile_phone = (new PhoneNumber($this->mobile_phone, 'US')->formatE164();

}


Then apply unique validation later
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Dynamic text input value
FilamentFFilament / ❓┊help
3y ago
Unique validation
FilamentFFilament / ❓┊help
2y ago
unique validation
FilamentFFilament / ❓┊help
3y ago