spatie/flare-debug-sender
Debug sender for Flare payloads, mainly for internal testing. Plug it into Laravel’s Flare config to inspect, log, or forward payloads, optionally printing full payload details and controlling passthrough/trace handling via configurable channels and sender options.
composer require spatie/flare-debug-sender) and basic configuration (e.g., defining a debug endpoint or queue listener).spatie/laravel-flare). If Flare isn’t already in use, adoption would require evaluating Flare’s broader utility (e.g., error tracking, stack traces).spatie/laravel-flare-client). If Flare is already integrated, this is a natural extension.spatie/laravel-flare and spatie/laravel-flare-client). If not, assess whether Flare’s features (e.g., error grouping, stack traces) are needed.composer require spatie/flare-debug-sender
Flare::debug() or a custom exception handler)..env or config).flare-debug-sender v1.x for Flare v1.x).flare-debug-sender and configure a debug endpoint/queue.App\Exceptions\Handler).use Spatie\FlareDebugSender\Facades\FlareDebugSender;
public function render($request, Throwable $exception)
{
if (app()->environment('local')) {
FlareDebugSender::send($exception);
}
return parent::render($request, $exception);
}
HttpException, QueryException).flare-debug-sender alongside Flare to avoid compatibility issues..env variables to centralize settings.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Debug sender misconfigured | Debug payloads lost or sent to wrong place | Use .env for config; test in staging. |
| Queue worker crashes | Debug payloads not processed | Monitor queue workers; retry logic. |
| HTTP endpoint unreachable | Debug payloads fail silently | Add fallback (e.g., log to file). |
| Flare dependency conflicts | Breaks error tracking | Pin Flare version; test upgrades. |
| Sensitive data in debug payloads | Security risk | Sanitize payloads before sending. |
| Overuse in CI/CD | Slows down tests | Disable in CI; use selectively. |
How can I help you explore Laravel packages today?