FilamentF
Filament8mo ago
Grogu

Searching encrypted columns

Is it possible to search encrypted columns in filament tables? In my DB, i encrypted a users first_name, preferred_name and last_name, then have a full_name attribute. Here is the code I use to display the users name in the table, but search just doesn't work - I assume because search works on the DB, where the columns are encrypted:

Tables\Columns\TextColumn::make('full_name')
    ->label('Name')
    ->searchable(['first_name', 'last_name', 'preferred_name'])
    ->sortable()
Was this page helpful?