我正在尝试使用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/发布于 2017-07-13 13:36:19
根据最新的oauth-server 5.1.4更新,您应该设置一个尚未在passport 2.x中实现的加密密钥。
解决这个问题的一个简单而快速的方法是使用passport 3.x,它通过使用以下命令更新您的composer.json文件来使用oauth-server 6.x:
"laravel/passport": "^3.0"然后
composer update或者,尝试
sudo chown www-data:www-data storage/oauth-*.key
sudo chmod 600 storage/oauth-*.key也许它能解决你的问题。
https://stackoverflow.com/questions/45072027
复制相似问题