错误:运行作曲家更新命令后,在护照10的laravel 8中 [英] Error: In laravel 8 with passport 10 after running composer update command

查看:73
本文介绍了错误:运行作曲家更新命令后,在护照10的laravel 8中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在带有通行证软件包10的laravel 8中创建通行证令牌时出现错误.运行composer update命令之前,一切工作正常.当我运行composer update命令时,出现此错误:-

I have an error while creating passport token in laravel 8 with passport package 10. Everything is working properly before running composer update command. When I run the composer update command I got this error:-

message: "Method Laravel\Passport\Bridge\AccessToken::__toString() must not throw an 
          exception, caught ErrorException: Using integers for registered date claims is 
          deprecated, please use DateTimeImmutable objects instead."
exception: "Symfony\Component\ErrorHandler\Error\FatalError"

在解决此错误时请提供帮助.任何帮助都将是可观的.

Please help while resolving this error. Any help would be appreciable.

推荐答案

当前解决方案是降级lcobucci/jwt软件包.

Current solution is downgrade lcobucci/jwt package.

composer require lcobucci/jwt:3.3.3

您还可以检查 https://github.com/laravel/passport/issues/1380

这篇关于错误:运行作曲家更新命令后,在护照10的laravel 8中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆