Skip to content

Commit e3f3040

Browse files
authored
Update ApplySegmentGlobals.php (#5)
Ensure we are processing the $next callable as expected from middleware.
1 parent 08a66f7 commit e3f3040

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Middleware/ApplySegmentGlobals.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function handle(Request $request, Closure $next, $guard = null)
2424
* Build some nice default context based on the current request.
2525
*/
2626
Segment::setGlobalContext($this->getContext($request));
27+
28+
return $next($request);
2729
}
2830

2931
private function getContext(Request $request): array

0 commit comments

Comments
 (0)