getKeyName() as $key) { $query->where($key, '=', $this->original[$key] ?? $this->getAttribute($key)); } return $query; } }