Method | Description | |
---|---|---|
delete ( boolean $force = false ) : integer | 删除当前的记录 | |
destroy ( mixed $data, boolean $force = false ) : integer | 删除记录 | |
onlyTrashed ( ) : |
只查询软删除数据 | |
restore ( array $where = [] ) : integer | 恢复被软删除的记录 | |
trashed ( ) : boolean | 判断当前实例是否被软删除 | |
withTrashed ( ) : |
查询软删除数据 |
Method | Description | |
---|---|---|
base ( |
查询默认不包含软删除数据 | |
getDeleteTimeField ( boolean $read = false ) : string | 获取软删除字段 |
protected getDeleteTimeField ( boolean $read = false ) : string | ||
$read | boolean | 是否查询操作 写操作的时候会自动去掉表别名 |
return | string |
public static onlyTrashed ( ) : |
||
return |
public static withTrashed ( ) : |
||
return |