在中间件获取$request->route是null
public function process(Request $request, callable $handler) : Response
{
$route = $request->route;
var_dump($route);
var_dump($route->getPath())
return $handler($request);
}
Call to a member function getPath() on null
看下文档的请求流程,先走的中间件再走的路由
https://www.workerman.net/doc/webman/others/process.html