Skip to content

Entries with the tag “filament”

These entries have all been tagged with “filament”.

Trimming Filament Strings Globally

When I first started using Laravel, I really didn’t like the global middleware that trimmed strings. But after a while, it became an irreplaceable part of my tool belt, and I am a convert.

I became so used to this that the first time a user used my Filament input and I saw a space after some text, I was really confused. Why did this happen?

Let me tell you how to fix this on the form itself, how to do it globally, and what that might cause a problem with.

Oct 2, 2026 3 min read #filament #laravel