Global Search Table Column
I want to search table columns globally. and my data was inserted in the database-encrypted form.
For example, I want to search for customer email, and it is in encrypted form.
So I want to apply a query for the search, like...
6 Replies
I don't think that's possible with Laravel defautl encryption. You would need something like Ciphersweet that offers searchable encryption: https://github.com/paragonie/ciphersweet?tab=readme-ov-file
GitHub
GitHub - paragonie/ciphersweet: Fast, searchable field-level encryp...
Fast, searchable field-level encryption for PHP projects - paragonie/ciphersweet
I have used database-based encryption and decryption instead of code-based.
So that I can able to apply encryption and decryption method on model query https://github.com/TapanDerasari/laravel-mysql-encrypt
For example I have applied encryption and decryption method while table search and sorting .
So is there way , i can override global search for the model ?
GitHub
GitHub - TapanDerasari/laravel-mysql-encrypt: Laravel 10.x Database...
Laravel 10.x Database encryption mysql side. Contribute to TapanDerasari/laravel-mysql-encrypt development by creating an account on GitHub.
Yes. Global search is defined on the resource. Search for a method that includes global search and query
Thank you for your prompt reply.
I have found the method and updated the code in the main resource file .
Where did you place this code?
In the main resource file .