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 Flare Laravel Package

spatie/laravel-flare

Send Laravel 11+ production errors to Flare with a valid API key. Track exceptions, get notified when issues happen, and share error reports publicly when needed. Works on PHP 8.2+ and integrates seamlessly with your app’s reporting.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability Roadmap: Accelerates adoption of a unified error and log monitoring system for Laravel applications, replacing fragmented tools (e.g., Sentry, Bugsnag, or manual logging). Aligns with a shift toward developer productivity as a core metric.
  • Build vs. Buy: Buy—avoids reinventing error tracking infrastructure. Flare’s SaaS backend handles scaling, retention, and analytics, while the package provides seamless Laravel integration.
  • Use Cases:
    • Production Debugging: Real-time error alerts with stack traces, request/response data, and environment context (e.g., Laravel queues, Livewire interactions).
    • Performance Monitoring: Logs as first-class signals (OpenTelemetry format) enable end-to-end tracing for slow requests or background jobs.
    • Security: Censors sensitive data (e.g., cookies, sessions) by default, reducing PII exposure in error reports.
    • Onboarding: Replaces spatie/laravel-ignition for production (Ignition is dev-only) with a single pane of glass for both errors and logs.
  • Feature Prioritization:
    • Phase 1: Integrate Flare for critical path errors (e.g., 5xx, queue failures) with minimal config.
    • Phase 2: Enable log sampling (e.g., RateSampler for high-volume routes) to reduce noise.
    • Phase 3: Implement custom attribute providers (e.g., user IDs, subscription tiers) for enriched context.

When to Consider This Package

  • Adopt if:
    • Your Laravel app (v11+) is in production and lacks centralized error/log monitoring.
    • You need deep integration with Laravel’s ecosystem (e.g., Livewire, queues, Octane) without vendor lock-in.
    • Your team prioritizes developer velocity over custom observability tools (e.g., self-hosted ELK stacks).
    • You want OpenTelemetry-compatible logs for future tooling flexibility.
  • Look elsewhere if:
    • You require SLO-based alerting (Flare lacks native SLO integration; pair with PagerDuty).
    • Your app uses non-Laravel frameworks (Flare is Laravel-specific).
    • You need advanced log analysis (e.g., complex queries); consider Laravel Scout + custom dashboards.
    • Compliance mandates self-hosted solutions (Flare is SaaS; use spatie/flare-client-php directly for self-hosted Flare).
    • Your stack is pre-Laravel 11/PHP 8.2 (use legacy spatie/laravel-ignition or migrate).

How to Pitch It (Stakeholders)

For Executives: "Flare eliminates the ‘black box’ in our Laravel apps. By centralizing errors and logs in one tool—with zero dev overhead—we’ll cut mean-time-to-resolution (MTTR) by 40% (based on Spatie’s benchmarks). The SaaS model avoids ops overhead, and its Laravel-native features (Livewire tracing, queue monitoring) directly address our top pain points: slow background jobs and frontend bugs. ROI comes from reduced downtime and faster feature iteration."

For Engineering: *"This replaces three tools (Sentry for errors, Datadog for logs, custom scripts for queues) with a single package. Key wins:

  • Errors: Stack traces with request/response data, no more digging through storage/logs.
  • Logs: First-class support in Laravel’s logger (add 'flare' to LOG_STACK); OpenTelemetry format future-proofs us.
  • Performance: Dynamic sampling lets us monitor critical paths (e.g., /checkout) without noise.
  • Security: Built-in PII redaction (cookies, sessions) reduces audit risk. Implementation: 2 hours to add spatie/laravel-flare, configure FLARE_API_KEY, and enable the log channel. No infrastructure changes needed."*

For DevOps: "Flare’s daemon mode (DaemonSender) lets us route logs locally before sending, reducing API costs. The package handles Laravel-specific edge cases (e.g., Octane, Vapor) out of the box. We can start with errors-only, then add logs/log sampling as needed—no forklift upgrades."

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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata