1. Go to this page and download the library: Download anish/maskable-entry library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
anish / maskable-entry example snippets
use Anish\MaskableEntry\Components\MaskableEntry;
use Illuminate\Support\Facades\Auth;
use Filament\Schemas\Schema;
public static function configure(Schema $schema): Schema
{
return $schema->components([
MaskableEntry::make('social_security_number')
->maskValue('XXX-XX-XXXX')
->actualValue(fn ($record) => $record->social_security_number)
->toggleable(Auth::user()->can('view_social_security_number'))
->label('Social Security Number'),
]);
}