Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Validation Error Logger Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Debugging & Observability: Enables structured logging of validation errors, improving debugging efficiency for form submissions, API requests, or user flows with high validation complexity.
  • Compliance & Security: Helps track validation failures for sensitive fields (e.g., passwords, PII) by excluding them from logs via config, reducing audit risks.
  • Developer Experience (DX): Reduces manual logging boilerplate, allowing teams to focus on core features while maintaining visibility into edge cases.
  • Roadmap Prioritization: Justifies investment in validation-heavy features (e.g., multi-step forms, complex workflows) by ensuring errors are systematically captured.
  • Build vs. Buy: Favors "buy" for teams already using Laravel, avoiding reinventing logging infrastructure for validation errors.

When to Consider This Package

  • Adopt if:

    • Your Laravel app handles high-volume validation errors (e.g., user signups, payment forms) where manual logging is cumbersome.
    • You need structured error logs for debugging without exposing sensitive data (configurable field exclusion).
    • Your team lacks time/resources to build a custom validation logger but needs low-maintenance observability.
    • You’re using Laravel’s built-in validation and want to leverage existing logging channels (e.g., Slack, Sentry, database).
  • Look elsewhere if:

    • You require real-time alerts (this is logging-only; pair with tools like Sentry or Laravel Horizon for notifications).
    • Your validation logic is highly dynamic (e.g., custom rules with runtime conditions) and needs deeper context than this package provides.
    • You’re using a non-Laravel framework or need cross-language validation logging.
    • Your team prefers zero-configuration solutions (this requires minimal setup but offers flexibility).

How to Pitch It (Stakeholders)

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)."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle