public function save() { if (parent::changed('pass')) { $this->pass = $this->passwordify($this->pass); } parent::save(); }