软删除用户生成的token不起作用,有没有办法使用软删除用户的token?
发布于 2018-11-12 16:48:18
如果您想获取已被softDeleted的用户。您必须使用withTrashed方法。因此,如果要查找具有令牌的softDeleted用户,则必须编写类似以下代码的代码:
$user = User::whereToken($token)->withTrashed()->first();https://stackoverflow.com/questions/53257564
复制相似问题