保存仅给出对或错。
$query = (new Item())->fill([
'first'=>$first,
'second'=>$second
])->save();
$lastInsertId = $query->id;
//does not work...
return ['status'=>true];
答案 0 :(得分:3)
改为使用<<ApplicationFaultDetails xmlns=""><ValidationErrors><Error><description>Duplicate request across business.</description><code>4001</code><path>requestID</path></Error></ValidationErrors></ApplicationFaultDetails>>
函数。
create