Can i use regex on TextInput::stripCharacters method?

I have one input masked as '(99) 99999-9999' and i want remove all non numbers characters
No description
4 Replies
Bruno
Bruno3mo ago
Try this:

TextInput::make('phone')
->label('Número de telefone')
->mask('+55 '.'(99) 99999-9999'),

TextInput::make('phone')
->label('Número de telefone')
->mask('+55 '.'(99) 99999-9999'),
Marcos Ferreira
Marcos FerreiraOP3mo ago
the values are coming like this on mutateFormDataBeforeCreate method
No description
Marcos Ferreira
Marcos FerreiraOP3mo ago
@Leandro Ferreira this worked! ty!
No description
Want results from more Discord servers?
Add your server