raffaelecarelle/php-error-insight
PHP Error Insight adds clearer, more actionable error reporting to Laravel apps: richer exception messages, context, and stack details so developers can diagnose failures faster. Lightweight, easy to install, and designed to fit naturally into existing Laravel logging and debugging workflows.
Install the package via Composer:
composer require raffaelecarelle/php-error-insight
Laravel auto-discovery registers the service provider. Publish the config file:
php artisan vendor:publish --tag=error-insight-config
Review config/error-insight.php to enable/disable capture, set the storage driver (log, database, or custom), and configure filters. The first use case is to capture unhandled exceptions and enrich them with request context, user data, and environment details so you can debug faster in development and staging.
App\Exceptions\Handler, call the package’s reporter from report() before or after the default logging. This ensures all exceptions flow through Error Insight.sensitive_keys array in the config to scrub passwords, tokens, and personal data from request payloads and headers.sensitive_keys config; the package may capture request bodies by default. Use the should_report callback to skip health checks or bots.config/error-insight.php, run php artisan config:clear (or config:cache in production) to avoid stale settings.enabled flag is true for the current environment.How can I help you explore Laravel packages today?