packy
2 months ago
302
3
Nova

Change how resousrce and global search work

Posted 2 months ago by packy

Right now my app only has 2 resources I want searched. Both resources will need to search an email column that is encrypted. I currently use something like this to find the records since they are encrypted:

Consumer::all()->filter(function ($record) use ($email) {
            if ($record->email == $email) {
                return $record;
            }
        });

How can I adjust the how "search" is done? Its a must for the app per the client, but so is encrypting PII. I should be able to use that same chunk of code if I knew where to overwrite how to search

Please sign in or create an account to participate in this conversation.