📜  laravel 更新仅更改字段 - PHP 代码示例

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

代码示例2
protected function performUpdate(Builder $query, array $options = [])
{
    $dirty = $this->getDirty();

    if (count($dirty) > 0)
    {
        // runs update query
    }

    return true;
}