文章详情页
为什么更新创建不了
浏览:231日期:2022-06-05 10:37:36
问题描述
$result = Staff::update([
'name'=>'武松',
],['id'=>1045]);
if ($result){ return $result->name.'更新成功';
}else{
return $result->getError();
}
问题解答
回答1:可以贴一下完整的代码吗 或者可以参考一下 https://www.php.cn/php/php-update-method.html
相关文章:
排行榜

网公网安备