public function update(array $attributes = array()) { if (!$this->exists) { return $this->newQuery()->update($attributes); } return $this->fill($attributes)->save(); }