时间:2021-07-01 10:21:17 帮助过:17人阅读
$customer = new Customer();
$customer->name = 'Qiang';
$customer->save();
怎么才能像tp那样save()后面传入数组就可以插入 跟新了...
$customer = new Customer();
$customer->name = 'Qiang';
$customer->save();
$customer = new Customer();
$customer->setAttributes(['name' => 'Qiang']);
$customer->save();