TP6 验证器 使用唯一验证,存在软删除数据会验证不通过

浏览:1806 发布日期:2019/12/01 分类:ThinkPHP6专区
$rule = ['user_name' => 'require|unique:users']
当用户名admin被软删除后,再插入admin的用户名,会提示用户名已存在
请问如何处理

use SoftDelete;
protected $deleteTime = 'delete_time';
最佳答案
评论( 相关
后面还有条评论,点击查看>>