© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
5 replies
simplehacker

Trim Text Inputs

How do I trim all TextInputs before saving to the database? I would've thought this would have been automatic because of the Laravel TrimStrings middleware but I can still added whitespace characters before and after the string and they still save.
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

Login screen without text Inputs
FilamentFFilament / ❓┊help
14mo ago
Trim each input
FilamentFFilament / ❓┊help
3y ago
Do text inputs have a clear input option
FilamentFFilament / ❓┊help
2y ago
Multiple Text Inputs From Relationship / Saving To Pivot
FilamentFFilament / ❓┊help
2y ago