Dumps
Flare records every call to dump() and dd() in your application and attaches the dumped values to the current trace or error report. There is nothing to call yourself. Under the hood, Laravel's dump() and dd() go through the Symfony VarDumper, and Flare hooks into the same handler so it can record what gets dumped.
You can disable this behaviour by ignoring the Dumps collect in config.php:
use Spatie\FlareClient\Enums\CollectType;
'collects' => FlareConfig::defaultCollects(
ignore: [CollectType::Dumps],
),
You can configure the maximum number of dumps tracked while collecting data in the case of an error as such:
'collects' => FlareConfig::defaultCollects(
extra: [
CollectType::Dumps->value => [
'max_items_with_errors' => 10,
],
]
),