firstOrnew doesn't update existing records but inserts new

后端 未结 0 1892
南方客
南方客 2020-12-28 16:46

Hello all I have a following code to update my table

$product = Product::firstOrNew(array(\'id\' => $data[\'product\'][$i][\'id\'],\'title\'=>$data[\'pr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题