TrimStrings Middleware is not working?
I add the TrimStrings middleware in the middleware method in the config of the panel, but it does not seem to work. I save a form where I put spaces around a field and these spaces are saved in the database.
Anyone has experienced that?
Am I doing something wrong?
2 Replies
did you persist the middleware?
https://filamentphp.com/docs/3.x/panels/configuration#applying-middleware
It still does not work..
The only working solution is using configure in appService in boot:
Not as perfect as I espected but, I think TextInput is enough for me, and if we want, we can also add in Textarea, Richeditor as well..