gpt4 book ai didi

php - 不推荐使用整数进行注册日期声明,请改用 DateTimeImmutable 对象

转载 作者:行者123 更新时间:2023-12-03 11:21:11 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Error: In laravel 8 with passport 10 after running composer update command

(1 个回答)


9 个月前关闭。




不推荐使用整数进行注册日期声明,请改用 DateTimeImmutable 对象。在此处使用 laravel 护照 @ laravel8.12enter 代码生成个人访问 token 期间发生此错误。

最佳答案

如果您正在使用 Tymon/jwt-auth ,
这可以帮助你
config\jwt.php文件

Change 

'jwt' => Tymon\JWTAuth\Providers\JWT\Lcobucci::class,

to

'jwt' => Tymon\JWTAuth\Providers\JWT\Namshi::class,

关于php - 不推荐使用整数进行注册日期声明,请改用 DateTimeImmutable 对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65009970/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com