Laravel 5.4路由列表异常

Mr *_*bot 1 php laravel laravel-routing laravel-5.4

我正在尝试使用artisan命令列出所有路由列表 php artisan route:list

我收到了以下错误,

[ErrorException]
  You must set the encryption key going forward to improve the security of this library - see this page for more info
  rmation https://oauth2.thephpleague.com/v5-security-improvements/
Run Code Online (Sandbox Code Playgroud)

RAU*_*MAR 6

根据最新oauth-server 5.1.4更新,您应该设置尚未实现的加密密钥passport 2.x.

对此的简单快速解决方法是通过使用以下passport 3.x内容oauth-server 6.x更新composer.json文件来使用哪些用途:

"laravel/passport": "^3.0"
Run Code Online (Sandbox Code Playgroud)

然后

composer update
Run Code Online (Sandbox Code Playgroud)

或者,试试

sudo chown www-data:www-data storage/oauth-*.key
sudo chmod 600 storage/oauth-*.key
Run Code Online (Sandbox Code Playgroud)

可能是它解决了你的问题.