You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add encryption validation and batch search methods
Features:
- RebuildIndex command now checks and encrypts unencrypted fields during rebuild
- Detects non-encrypted data by checking for Laravel's encryption format prefix
- Automatically re-encrypts plaintext data in encrypted cast fields
- Reports number of fields encrypted during rebuild process
- Add encryptedSearchAny() scope for OR logic across multiple fields
- Add encryptedSearchAll() scope for AND logic with multiple field-term pairs
- Both methods support exact and prefix search types
- Compatible with database and Elasticsearch backends
Tests:
- All 106 tests passing
- BatchQueryTest now fully operational with new scope methods
- Rebuild command tested with encryption validation
Technical details:
- Uses getAttributes() to access raw database values
- Detects encrypted format by checking for 'eyJpdiI' prefix (base64 of '{"iv"')
- encryptedSearchAny() delegates to existing encryptedExactMulti/encryptedPrefixMulti
- encryptedSearchAll() builds chained whereIn conditions for AND logic
0 commit comments