📜  laravel 模型很脏 - PHP 代码示例

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

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

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

    return true;
}