Laravel 5.4 路由列表异常
Laravel 5.4 route list exception
我正在尝试使用 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/
根据最新的 oauth-server 5.1.4
更新,您应该设置一个尚未在 passport 2.x
中实现的加密密钥。
一个简单快速的解决方法是使用 passport 3.x
,它使用 oauth-server 6.x
,更新你的 composer.json
文件:
"laravel/passport": "^3.0"
然后
composer update
或者,尝试
sudo chown www-data:www-data storage/oauth-*.key
sudo chmod 600 storage/oauth-*.key
也许它能解决您的问题。
我正在尝试使用 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/
根据最新的 oauth-server 5.1.4
更新,您应该设置一个尚未在 passport 2.x
中实现的加密密钥。
一个简单快速的解决方法是使用 passport 3.x
,它使用 oauth-server 6.x
,更新你的 composer.json
文件:
"laravel/passport": "^3.0"
然后
composer update
或者,尝试
sudo chown www-data:www-data storage/oauth-*.key
sudo chmod 600 storage/oauth-*.key
也许它能解决您的问题。