public function setNameAttribute($value) { $value = trim($value); $this->attributes['name'] = $value; $this->attributes['normalized'] = app(TagService::class)->normalize($value); }