arondeparon/laravel-request-sanitizer
Sanitize incoming request data before validation in Laravel. Define reusable sanitizers to trim, cast, or transform input—individually or in pipelines—keeping controllers and form requests clean. Integrates smoothly with Laravel's validation lifecycle.
For executives: this is a low-cost, MIT-licensed Laravel utility that can reduce custom input-cleanup code and improve consistency before validation. The latest release (6.2.0) adds Laravel 12 support, which reduces upgrade friction and extends the package's useful life across your framework roadmap. It is a tactical quality/security hygiene improvement, not a silver bullet, and should be piloted on low-risk forms with clear success measures.
For engineering: the package centralizes pre-validation sanitization in Laravel request flows, reducing duplicated boilerplate and making behavior easier to test. Version 6.2.0 is a compatibility-only release adding Laravel 12 support, so treat it as a maintenance and upgrade-unblocking change rather than a functional one — no new sanitizer capabilities or breaking changes are indicated. Recommend pinning the version, reviewing every sanitizer rule, keeping validation and output encoding separate, and adding regression tests for fields where normalization could alter meaning. If you are on or moving to Laravel 12, this release removes a compatibility blocker; start with a time-boxed pilot on non-critical forms, measure reduced duplication and input defects, then decide whether to standardize or replace with an internal solution if requirements become more complex.
How can I help you explore Laravel packages today?