We're building a service that will contain sensitive information (financial data) and I've taken the standpoint to encrypt the data before pushing into the database.
However, the column also needs to be queryable and as the encryption happens in a trait it's only decrypted once plucked out of the database and converted to an object.
This means that for now, we would have to pull ALL rows and then query the object in PHP. As this app grows this won't be ideal, so just curious what others do?