怎么才能像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 關注
- 1626 瀏覽
添加回答
舉報
0/150
提交
取消