怎么才能像tp那样save()后面传入数组就可以插入 跟新了...$customer = new Customer();
$customer->name = 'Qiang';
$customer->save();
1 回答
喵喔喔
TA贡献1735条经验 获得超5个赞
$customer = new Customer();
$customer->setAttributes(['name' => 'Qiang']);
$customer->save();
- 1 回答
- 0 关注
- 1594 浏览
添加回答
举报
0/150
提交
取消