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.
Add support for Laravel 13
Release v1.0.0 - Laravel Validation Error Logger Package
🚀 v1.0.0 of the Laravel Validation Error Logger package is now live! 🎉
This package provides a simple and efficient way to log Form Request validation errors in your Laravel applications. It comes with a trait that can be added to any form request to automatically log detailed validation failure information, including request URLs, error messages, and relevant data (with customizable exclusions). Features:
📋 Automatic Validation Error Logging: Logs validation failures with detailed information.
🔧 Configurable Log Channels: Easily configure the log channel for validation errors.
🚫 Exclusion of Sensitive Data: Exclude specific fields from being logged.
🛠 Easy Integration: Simply include the LogsValidationErrors trait in your form requests to start logging validation errors.
Installation:
You can install the package via Composer:
composer require foxen/laravel-validation-error-logger
Configuration:
Publish the configuration file to customize settings like log channels and exclusions:
php artisan vendor:publish --provider="Foxen\LaravelValidationErrorLogger\ServiceProvider"
Usage:
Add the LogsValidationErrors trait to your form requests to enable automatic validation error logging. You can customize the default log channel and exclusion list by overriding the trait's default properties.
For full documentation and usage examples, please refer to the README. What's New:
Initial release with core functionality for logging validation errors.
Support for customizable logging channels and exclusion lists.
How can I help you explore Laravel packages today?