Laravel context
Flare can collect Laravel Context when an exception is thrown within your application.
For example, add a value to the context anywhere in your application:
use Illuminate\Support\Facades\Context;
Context::add('tenant_id', $tenant->id);
When an error happens later in the same request, Flare shows this value on the error page, in the "Laravel Context" section of the "App" group.
Flare does not send hidden context. Values you add with Context::addHidden() stay in your application.
It is possible to disable the collection of context information by ignoring the LaravelContext collect in config.php:
use Spatie\LaravelFlare\Enums\LaravelCollectType;
'collects' => FlareConfig::defaultCollects(
ignore: [LaravelCollectType::LaravelContext],
),