foxen/laravel-validation-error-logger
Log Laravel validation errors automatically from FormRequest classes using a simple trait. Configure the log channel and exclude sensitive fields (e.g., passwords) via a published config file, with per-request overrides available.
Adopt if:
Look elsewhere if:
For Executives: "This package lets us automatically log validation errors in Laravel with zero code changes—just a trait and config. It’s like adding a ‘black box recorder’ for forms and APIs, so we catch edge cases (e.g., failed signups, payment errors) without manual debugging. For example, if user onboarding drops by 20%, we’ll see why in logs. Setup takes 10 minutes, and it integrates with our existing logging (e.g., Sentry). Low risk, high value for support and dev teams."
For Engineering:
"Need to stop losing validation errors to ‘it works on my machine’? This trait logs failed validations to your preferred channel (e.g., stack, single, or custom) with excluded fields for security. No more dd($errors) in production—just structured logs. Configurable via validation-error-logger.php (e.g., exclude password, add custom metadata). Works with Laravel’s validation out of the box. Tradeoff: minimal setup for broad coverage, but not a replacement for alerting (pair with Sentry/Laravel Horizon)."
How can I help you explore Laravel packages today?