Skip to content

Commit

Permalink
Merge pull request #199 from spatie/feature/fix-middlewares
Browse files Browse the repository at this point in the history
Fix for some middlewares not being executed
  • Loading branch information
rubenvanassche committed Apr 30, 2024
2 parents 8f2fb6c + d93eb9a commit 42d986f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FlareMiddleware/AddContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -22,6 +22,6 @@ public function handle(Report $report, Closure $next)
$report->group('laravel_context', $allContext);
}

return $report;
return $next($report);
}
}

0 comments on commit 42d986f

Please sign in to comment.