route()?->getName() ?? ''; $path = $request->path(); $matched = $this->registry->resolveForRoute($routeName, $path, $group, $timing); if ($matched === []) { return $next($request); } // 매칭된 확장 미들웨어들을 Laravel Pipeline 으로 순차 실행 후 $next. return (new Pipeline($this->app)) ->send($request) ->through($matched) ->then($next); } }