Flare by Spatie
    • Error Tracking
    • Performance Monitoring
  • Pricing
  • Docs
  • Insights
  • Changelog
  • Back to Flare
  • Sign in
  • Try Flare for free
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Docs
  • Insights
  • Changelog
    • Back to Flare
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript
  • General
  • Installation
  • Censoring collected data
  • Ignoring collected data
  • Laravel Octane
  • Laravel Vapor
  • Errors
  • Adding custom context
  • Customising error grouping
  • Handling errors
  • Linking to errors
  • Reporting errors
  • Sending logs to Flare
  • Performance
  • Introduction
  • Sampling
  • Limits
  • Modify spans and span events
  • Data Collection
  • Application info
  • Cache events
  • Console commands
  • Customise error report
  • Database transactions
  • Dumps
  • Errors when tracing
  • Exception context
  • External http requests
  • Filesystem operations
  • Git information
  • Glows
  • Identifying users
  • Jobs and queues
  • Laravel context
  • Livewire
  • Logs
  • Queries
  • Redis commands
  • Requests
  • Server info
  • Solutions
  • Spans
  • Stacktrace arguments
  • Views
  • Older Packages
  • Laravel Flare V1
  • Ignition

Installation

You can install the Flare client as follows:

composer require spatie/laravel-flare:"^2.2" --no-interaction

Register Flare in the withExceptions closure of your bootstrap/app.php file:

->withExceptions(function (Exceptions $exceptions) {
    \Spatie\LaravelFlare\Facades\Flare::handles($exceptions);
})->create();

Copy the API key to your .env file:

FLARE_KEY=YOUR-API-KEY

Great! From now on, Flare will track all errors and exceptions throughout your application.

Using an older Laravel/PHP version or the old application structure?

In the past we've had multiple clients without support for performance monitoring. While these packages are still available, we recommend using the newer packages for all new projects:

  • spatie/laravel-flare v1: supports PHP 8.1 and later, Laravel 11.0 and 12.0
  • spatie/laravel-ignition: supports PHP 7.1 and later, Laravel 5.5 until 12.0
  • spatie/flare-client-php v1: supports PHP 8.0 and later
  • facade/flare-client-php v1: supports PHP 7.1 until 8.0

Using Ignition?

The current Flare client and Laravel Flare package are incompatible with Ignition. If you want to use Flare, you need to remove Ignition from your project.

Due to high demand, we are working on a new version of the Flare client that will be compatible with Ignition. We will keep you updated on our progress.

Upgrading

You can find more information about the laravel-flare upgrade from v1 to v2 here.

Webhooks Censoring collected data
  • On this page
  • Using an older Laravel/PHP version or the old application structure?
  • Using Ignition?
  • Upgrading

Catch errors and fix slowdowns with Flare, the full-stack application monitoring platform for Laravel, PHP & JavaScript.

  • Platform
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Support
  • Resources
  • Blog
  • Changelog
  • Documentation
  • Affiliate program
  • uptime status badge Service status
  • Terms of use
  • DPA
  • Privacy & cookie Policy
Flare