F
Filament14mo 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
awsqed14mo 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
FallyOP14mo ago
I will give it a shot. Thank you!
Mark Chaney
Mark Chaney12mo ago
Did you get this working? Cant do unique() when encrypted as well :/
Sjoerd24
Sjoerd242d ago
I am also curious if you got this working @Fally ? Also sorting of encrypted fields is a nightmare
Fally
FallyOP2d ago
Sorry, no. I gave up on it
Sjoerd24
Sjoerd242d ago
Thanks for replying !

Did you find this page helpful?