Laravel Community Tools by Tighten

Kirk Bushell

Joined: 10 years ago
Total tricks: 1
Last trick: 10 years ago

Submitted tricks

This piece of middleware can be applied at a global level, or on a per-route basis. The idea is that instead of polluting your databases with HTML and other potentially damaging data as a result of user input, this middleware will immediately strip all tags from any input, before it gets to validation or saved to a database. The result? A more dependable solution that doesn't require developer memory to implement safe output rules + cleaner data in your database.
kirkbushel... 10 years ago 16374
5.0