Skip to content

Commit

Permalink
Fix for some middlewares not being executed
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Apr 30, 2024
1 parent 8f2fb6c commit d93eb9a
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 d93eb9a

Please sign in to comment.