我安装了guzzlehttp://guzzle6.0,现在laravel护照不工作了



我用composer安装了guzzlehttp://guzzle,composer需要guzzlehttp/guzzle~6.0,之后,所有的应用程序都运行正常,但laravel passport不工作,它说下一个错误

ParseError:语法错误,意外的"Parser"(T_STRING(,在第22行的file-back/vvendor/lcobucci/jwt/src/Configuration.php中应为函数(T_function(或常量(T_const(

有什么建议吗?谢谢

试试这个我不确定当你安装这样的guzzle时,请删除版本。

composer require guzzlehttp/guzzle

并进行

composer install and composer update

也许它能解决你的问题

php artisan key:generate
php artisan jwt:secret
php artisan cache:clear
php artisan config:clear

在运行此命令之前,请确保有安装jwt包,然后检查config文件夹中的配置文件名jwt.php。

最新更新