refactor: rename name method to sanitizedName in BaseModel for clarity
This commit is contained in:
@@ -20,7 +20,7 @@ abstract class BaseModel extends Model
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
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')),
|
||||||
|
|||||||
Reference in New Issue
Block a user