F
Filament15mo ago
Fally

How to properly search encrypted columns in table

I was wondering what the proper way to search encrypted data is in Filament. I have columns with some sensitive information that I cast as encrypted in the model. Of course, searchable() is added on the column but naturally, it won't find the value in the database. What is the best approach here? Is it even doable?
6 Replies
awsqed
awsqed15mo ago
GitHub
GitHub - spatie/laravel-ciphersweet: Use Ciphersweet in your Larave...
Use Ciphersweet in your Laravel project. Contribute to spatie/laravel-ciphersweet development by creating an account on GitHub.
Fally
FallyOP15mo ago
I will give it a shot. Thank you!
Mark Chaney
Mark Chaney13mo ago
Did you get this working? Cant do unique() when encrypted as well :/
Sjoerd24
Sjoerd242mo ago
I am also curious if you got this working @Fally ? Also sorting of encrypted fields is a nightmare
Fally
FallyOP2mo ago
Sorry, no. I gave up on it
Sjoerd24
Sjoerd242mo ago
Thanks for replying !

Did you find this page helpful?