diff --git a/composer.json b/composer.json index e4f0a9db..a4a41f44 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "ext-mbstring": "*", "illuminate/support": "^10.0|^11.0", "spatie/flare-client-php": "^1.3.5", - "spatie/ignition": "^1.9", + "spatie/ignition": "^1.13", "symfony/console": "^6.2.3|^7.0", "symfony/var-dumper": "^6.2.3|^7.0" }, diff --git a/config/flare.php b/config/flare.php index 3174f53e..7c376875 100644 --- a/config/flare.php +++ b/config/flare.php @@ -10,6 +10,7 @@ use Spatie\LaravelIgnition\FlareMiddleware\AddJobs; use Spatie\LaravelIgnition\FlareMiddleware\AddLogs; use Spatie\LaravelIgnition\FlareMiddleware\AddQueries; +use Spatie\LaravelIgnition\FlareMiddleware\AddContext; use Spatie\LaravelIgnition\FlareMiddleware\AddNotifierName; return [ @@ -53,6 +54,7 @@ AddJobs::class => [ 'max_chained_job_reporting_depth' => 5, ], + AddContext::class, CensorRequestBodyFields::class => [ 'censor_fields' => [ 'password', diff --git a/src/FlareMiddleware/AddContext.php b/src/FlareMiddleware/AddContext.php new file mode 100644 index 00000000..2ac40cf4 --- /dev/null +++ b/src/FlareMiddleware/AddContext.php @@ -0,0 +1,27 @@ +group('laravel_context', Context::all()); + } + + return $report; + } +}