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 for tracking, alerts, and shareable public reports. Configure with a Flare API key to capture exceptions automatically. Supports PHP 8.2+ and integrates cleanly alongside Laravel Ignition.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Observability & Debugging Roadmap:

    • Enable real-time error tracking in production for Laravel applications, reducing MTTR (Mean Time to Resolution) by surfacing detailed stack traces, logs, and context (e.g., user sessions, requests, queries) in a centralized dashboard (Flare).
    • Replace or augment existing logging solutions (e.g., Monolog, Sentry) with a Laravel-native, unified debugging experience that integrates seamlessly with the framework’s ecosystem (e.g., Livewire, Queues, Octane).
    • Prioritize feature flags for performance monitoring (e.g., sampling routes/jobs) to balance cost (Flare API usage) with actionable insights.
  • Build vs. Buy:

    • Buy: Avoid reinventing error tracking from scratch. Leverage Spatie’s mature, battle-tested integration with Flare, which handles edge cases (e.g., Livewire, Vapor, Octane) and aligns with Laravel’s lifecycle (PHP 8.2+, Laravel 11+).
    • Build: Only if Flare lacks critical features (e.g., custom alerting rules, deep integrations with third-party tools like Datadog). Extend via Flare’s configurable collectors (e.g., custom attributes, sampling logic).
  • Use Cases:

    • Production Debugging: Capture and triage errors/logs without exposing sensitive data (e.g., censored cookies/sessions).
    • Performance Insights: Monitor slow routes/jobs via traces and sampling (e.g., exclude /health endpoints).
    • Incident Response: Correlate errors with logs using OpenTelemetry-compatible log formats.
    • Developer Experience: Replace dd()/var_dump() with context-rich error reports in Flare’s UI.

When to Consider This Package

  • Adopt if:

    • Your Laravel app is in production and you need real-time error tracking with minimal dev overhead.
    • You use Laravel 11+ and PHP 8.2+ (or plan to upgrade soon).
    • You want unified debugging (errors + logs + traces) in a single tool (Flare) without vendor lock-in (MIT license).
    • Your team values developer productivity over custom logging solutions (e.g., no need to write parsers for stack traces).
    • You need sampling to control costs (e.g., only track errors from /checkout routes).
  • Look elsewhere if:

    • You’re on Laravel <11 or PHP <8.2 (use spatie/laravel-ignition for local debugging).
    • You require advanced alerting (e.g., Slack/PagerDuty integrations) beyond Flare’s native notifications.
    • Your stack includes non-Laravel services (e.g., Node.js APIs) that need centralized logging—consider OpenTelemetry collectors or dedicated APM tools (e.g., New Relic).
    • You need deep customization of error grouping/classification (Flare’s grouping is opinionated; extend via flare.collects).
    • Your team prefers Sentry for its ecosystem (e.g., performance monitoring, replay) or Datadog for multi-language observability.

How to Pitch It (Stakeholders)

For Executives:

"Laravel Flare lets us turn production errors into actionable insights without writing custom logging infrastructure*. By integrating with Flare, we’ll:

  • Cut debugging time by 50%+ with rich error context (stack traces, logs, user sessions) in a single dashboard.
  • Reduce MTTR by getting real-time alerts for critical failures (e.g., payment processing errors).
  • Lower costs by sampling only high-value routes/jobs (e.g., /checkout) instead of logging everything.
  • Future-proof our stack with OpenTelemetry-compatible logs, avoiding vendor lock-in.

Investment: Minimal—just a composer require and Flare API key (~$50/month for small teams). ROI: Faster releases, fewer production fires, and happier devs."*


For Engineering:

*"This replaces our patchwork of logging tools (Monolog, Sentry, custom scripts) with a Laravel-native solution that:

  • Automatically captures errors, logs, and traces with zero code changes (just add FLARE_API_KEY to .env).
  • Works out of the box with Laravel’s ecosystem: Livewire, Queues, Vapor, Octane.
  • Gives us control over what’s sent (sampling, log levels, censoring PII).
  • Integrates with our existing workflows: Flare’s UI is cleaner than Sentry for Laravel, and logs use OpenTelemetry format for future flexibility.

Trade-offs:

  • No error solutions (removed in v3.0), but we can build custom alerts via Flare’s API.
  • Sampling adds complexity but saves costs—we’ll configure it per environment.

Next steps:

  1. Add spatie/laravel-flare to composer.json.
  2. Configure .env and config/flare.php (5-minute setup).
  3. Test in staging with a sample error to verify traces/logs appear in Flare.
  4. Roll out to production with sampling rules for critical paths."*

Key Selling Points:

  • Speed: Deploy in <1 hour; no infrastructure changes.
  • Cost: Pay only for what you use (sampling reduces Flare API costs).
  • Laravel Love: Built by Spatie, the framework’s most trusted package authors.
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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai