How to display masked value in table columns?
I have an input for a phone like this:
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
method?3 Replies
Here's my solution (using chatgpt)
it can be an accessor as well
https://laravel.com/docs/10.x/eloquent-mutators
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
https://packagist.org/packages/propaganistas/laravel-phone
I've never used this before, but you can try
propaganistas/laravel-phone - Packagist
Adds phone number functionality to Laravel based on Google's libphonenumber API.