© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Mehdi Yaghoubi
and How to save the value of the masked model in the livewire component to the database. the x-mask:dynamic="$money($input)" is something like 99,100,200 but I need to save 99100200?
Anjanesh Lekshminarayanan
Web UI Engineer
I haven't yet got into Livewire but you could do a replaceAll(',', '') on form submit - bad idea if it's repetitive.
Or
<script> Alpine.data('x-data', { get computedValue() { return this.myValue.replace(/,/g, ''); } }); </script> <span x-text="computedValue"></span>