怎么才能像tp那样save()后面传入数组就可以插入 跟新了...
<code>$customer = new Customer(); $customer->name = 'Qiang'; $customer->save();</code>
怎么才能像tp那样save()后面传入数组就可以插入 跟新了...
<code>$customer = new Customer(); $customer->name = 'Qiang'; $customer->save();</code>
<code>$customer = new Customer(); $customer->setAttributes(['name' => 'Qiang']); $customer->save();</code>