tp5种 $this->create($data)不过滤字段

浏览:3914 发布日期:2016/04/18 分类:ThinkPHP5专区 关键字: 字段过滤
tp5种 $this->create($data)不过滤数据表中没有的字段,看了think\model类,是过滤的啊.
用的RC2版本。namespace app\admin\model;
use think\Model;

class ModelModel extends Model{
       public function update($data){
        
        $data = $this->create($data);
        dump($data );exit;
        
    }
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>