/** * Discards all changes. * * @return $this */ public function resetChanges() { $this->attributes->setRaw($this->changedAttributes); $this->changedAttributes = []; return $this; }