📜  laravel 模型设置字段 laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:54.444000             🧑  作者: Mango

代码示例1
$table->update(['field' => 'val']);


or
  
  
ModelName::query()->where('column_name','any_value')->update(['field' => 'val']);