$user = new User(); $data = Request::only([‘username,email‘]); $id = $user->save($data,[‘id‘=>1]);
tp5修改数据前过滤
原文:https://www.cnblogs.com/aln0825/p/13443608.html