Installation
You can install the Flare client as follows:
composer require spatie/laravel-flare:^2.0 --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?
Within the settings of the Flare project you're setting up, you'll find extensive documentation on how to set up the Flare client for older versions of Laravel and PHP, as well as for the old application structure.
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.