Custom Input use masking. (Money)
Hello, I want to create a custom input for money values. I just want to move this mask to the MoneyInput class, so i have less repeating code. Do i need to change the getMask function in order to do this?
This doesn't work:
Solution:Jump to solution
Needed to add this and it apparently works. Thanks!
``` public function hasMask(): bool
{
return true;
}...
4 Replies
return $this->evaluate($mask, [
'mask' => app(TextInput\Mask::class),
]);
Like this? Does not work for me unfortunately
Solution
Needed to add this and it apparently works. Thanks!
super π