attributes['name'] = $this->customizeName($sanitized); } protected function customizeName($value) { return $value; // Default: no customization } public function setDescriptionAttribute($value) { $this->attributes['description'] = strip_tags($value); } }