调试代码时发现是JWTAuth::attempt($credentials)认证失败,值为false;
当我使用postman发送请求时是这样的
登录请求:

下面是我的配置文件
这是web.php文件
这是AuthController

这是MyUser (Model)
我觉得问题的根本就出在JWTAuth::attempt($credentials)

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号