refactor: rename name method to sanitizedName in BaseModel for clarity

This commit is contained in:
Andras Bacsai 2024-12-10 08:50:07 +01:00
parent f6ab2000d1
commit 19d277f8ec

View file

@ -20,7 +20,7 @@ protected static function boot()
}); });
} }
public function name(): Attribute public function sanitizedName(): Attribute
{ {
return new Attribute( return new Attribute(
get: fn () => sanitize_string($this->getRawOriginal('name')), get: fn () => sanitize_string($this->getRawOriginal('name')),