php - I installed guzzlehttp/guzzle 6.0 and now laravel passport is not working

I installed guzzlehttp/guzzle with composer, composer require guzzlehttp/guzzle ~6.0, after that, all the application is running ok, but laravel passport is not working, it said the next error

ParseError: syntax error, unexpected 'Parser' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in file back/vendor/lcobucci/jwt/src/Configuration.php on line 22,

Any suggestion? thank you

Answer

Solution:

try this i am not sure remove version when you install guzzle like this.

composer require guzzlehttp/guzzle

and do

composer install and composer update

may be it will solve your problem

Answer

Solution:

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

Before run this commandsmake sure there is install jwt package, than check its config file name jwt.php in config folder.

Source