It seems like this earnest question got derailed by "should you" instead of answering the original question "can you".
Short answer: No, Nova can't use your model to query encrypted data, but a custom tool could.
OPINION - Encrypted at rest does not mean the same thing to every security officer, I'm a CTO in Healthtech in Australia and they very much do mean encrypted in the DB, not on Disk. They literally are wanting to ensure that even the developer team can't read patient data out of the system. And you're right that's a PITA, but honestly I would expect the future to be more encrypted and security paranoid instead of less. - END OPINION
@axiomatic I actually came to this post for the same reason, I have encrypted patient data in a table, I had a bug where invalid syntax emails were allowed to be added to the system, so now I've got junk email addresses in a table that I can't read. Woot!
Now, chatGPT suggests this can be fixed. I haven't had time to test it, but here's a "can you" answer instead of a "should you" debate:
The high level steps would be:
- Create a custom Tool for use with Nova (this can take inputs form a Nova form if needed) Some Help with that here: https://nova.laravel.com/docs/customization/tools.html#:~:text=When%20generating%20a%20tool%2C%20Nova,necessary%20to%20build%20your%20tool.
- Regist the tool in your App/Providers/NovaServiceProvider class (steps in above doc)
- With your new tool registered, you can create a Laravel class that access your Model and allows you to leverage that to check your encrypted data
- Make sure you add the Navigation (also in that link) so that you can see your tool in the side menu
As I said I haven't tested this, I didn't need it until now, but happy to hear from more experts on whether or not this method might work.