protected function setPasswordAttribute($password) { $this->attributes['password'] = Hash::make($password); // TODO: Maybe reset some attributes like confirmation code here? }