jwt的login错误
来源:5-10 登录接口
xy_scar
2021-07-29
报错是:Argument 1 passed to Tymon\JWTAuth\JWTGuard::setUser() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Models\User given。这个在网上查阅说是“Model没有实现AuthenticatableContract接口(契约)报错”。不知道咋解决
写回答
1回答
-
看下提供的源码里User模型实现的接口
042021-07-30
相似问题