From d93eb9afd14dc4060cf5262ae3f46f37a5276c6f Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Tue, 30 Apr 2024 15:52:58 +0200 Subject: [PATCH] Fix for some middlewares not being executed --- src/FlareMiddleware/AddContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FlareMiddleware/AddContext.php b/src/FlareMiddleware/AddContext.php index 36dfd02..b37066d 100644 --- a/src/FlareMiddleware/AddContext.php +++ b/src/FlareMiddleware/AddContext.php @@ -13,7 +13,7 @@ class AddContext implements FlareMiddleware public function handle(Report $report, Closure $next) { if (! class_exists(Repository::class)) { - return $report; + return $next($report); } $allContext = Context::all(); @@ -22,6 +22,6 @@ public function handle(Report $report, Closure $next) $report->group('laravel_context', $allContext); } - return $report; + return $next($report); } }