在中間件獲取$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
看下文檔的請(qǐng)求流程,先走的中間件再走的路由
http://www.wtbis.cn/doc/webman/others/process.html