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.