在安装auth2.0服务器Laravel5.1后,出现服务器错误


after install auth2.0 server Laravel5.1 give an server error

我已成功安装Laravel5.1localhost/myproject/public链路工作正常。

在那之后,我安装了与此相应的Auth2.0服务器。https://github.com/lucadegasperi/oauth2-server-laravel/blob/97496916713af20b4594dee2d867168464d56316/docs/getting-started/laravel-5.md

安装和配置后,我调用了url http://localhost/myproject/public/oauth/access_token并用http://localhost/myproject/public 给出所有url的500 server error

有人能帮我吗。

谢谢。

从您的链接:

为了使某些授权和资源服务器能够正确使用Laravel5,请从$Middleware数组中删除App''Http''Middleware''VerifyCsrfToken行,并将其放入$routeMiddleware数组,如下所示:"csrf"=>App''Http'' Middleware''VerifyCsrfToken::class,

Note: remember to add the csrf middleware manually on any route where it's appropriate.

希望这些都能遵循。