© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
vahnmarty

How to display masked value in table columns?

I have an input for a phone like this:

 TextInput::make('mobile_phone')->mask(fn (TextInput\Mask $mask) => $mask->pattern('(000) 000-0000'))
 TextInput::make('mobile_phone')->mask(fn (TextInput\Mask $mask) => $mask->pattern('(000) 000-0000'))


But in the table, it is showing plain digits like "2223334444" (because that is what stored in the db). I guess there's a better way to handle columns like this before I experiment
->formatStateUsing
->formatStateUsing
method?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Display value of Pivot Table
FilamentFFilament / ❓┊help
3y ago
How to properly search encrypted columns in table
FilamentFFilament / ❓┊help
3y ago
Moving columns in table
FilamentFFilament / ❓┊help
13mo ago
Table columns
FilamentFFilament / ❓┊help
2y ago