is there a way to hide value in textinput by replacing value to *?

tried using the code below, but what should i put in pattern so that i could replace my original value to *?

->mask(fn (Forms\Components\TextInput\Mask $mask) => $mask
->pattern('')
)

*edited:
how to mask the last 5 character?
Was this page helpful?