Epko
Trim each input
This is indeed working, and probably the best solution. I find it strange this is not the default behaviour in Filament, as it is the default behaviour in Laravel (https://laravel.com/docs/11.x/validation#a-note-on-optional-fields).
For anyone having the same issue, this is how I implemented it (thanks to the suggestion of @toeknee):
But I have to repeat this in every Edit page.
7 replies