国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

在中間件獲取$request->route是null

wang5955616

問題描述

在中間件獲取$request->route是null

程序代碼

public function process(Request $request, callable $handler) : Response
    {
        $route = $request->route;
        var_dump($route);
        var_dump($route->getPath())
        return $handler($request);
    }

報(bào)錯(cuò)信息

Call to a member function getPath() on null

截圖報(bào)錯(cuò)信息里報(bào)錯(cuò)文件相關(guān)代碼

截圖

787 1 0
1個(gè)回答

ysian

看下文檔的請(qǐng)求流程,先走的中間件再走的路由
http://www.wtbis.cn/doc/webman/others/process.html

  • 暫無評(píng)論
年代過于久遠(yuǎn),無法發(fā)表回答
??