Target Class Does Not Exist
I'm attempting to use the Mask functionality in my class, and I've added the following line:
TextInput::make('phone')->mask(fn (TextInput\Mask $mask) => $mask->pattern('(000) 000-0000'))->tel(),
I get the error Target class [Filament\Forms\Components\TextInput\Mask] does not exist.
2 Replies
In v3 Mask was replaced with Alpine's mask.
https://filamentphp.com/docs/3.x/forms/fields/text-input#input-masking
ahh ok, i guess I had v2 selected. thanks!