Skip to content

Commit 42d986f

Browse files
Merge pull request #199 from spatie/feature/fix-middlewares
Fix for some middlewares not being executed
2 parents 8f2fb6c + d93eb9a commit 42d986f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FlareMiddleware/AddContext.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AddContext implements FlareMiddleware
1313
public function handle(Report $report, Closure $next)
1414
{
1515
if (! class_exists(Repository::class)) {
16-
return $report;
16+
return $next($report);
1717
}
1818

1919
$allContext = Context::all();
@@ -22,6 +22,6 @@ public function handle(Report $report, Closure $next)
2222
$report->group('laravel_context', $allContext);
2323
}
2424

25-
return $report;
25+
return $next($report);
2626
}
2727
}

0 commit comments

Comments
 (0)