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
I am using your package to encrypt sensitive PII which works fine for string values and numbers.
When it comes to encrypting JSON fields however the encryption fails upon the following command:
PHP Warning: Module 'mbstring' already loaded in Unknown on line 0
342 records will be encrypted
ErrorException
openssl_encrypt() expects parameter 1 to be string, array given
In the customer model I have added the following:
namespace App;
use Illuminate\Database\Eloquent\Model;
use ESolution\DBEncryption\Traits\EncryptedAttribute;
class Customer extends Model
{
use EncryptedAttribute;
protected $encryptable = [
'details'
];
}
Please advise how to apply the encryption command on fields containing JSON data.
Many thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi Elgibor,
I am using your package to encrypt sensitive PII which works fine for string values and numbers.
When it comes to encrypting JSON fields however the encryption fails upon the following command:
php artisan encryptable:encryptModel 'App\Customer'
In the customer model I have added the following:
Please advise how to apply the encryption command on fields containing JSON data.
Many thanks in advance!
The text was updated successfully, but these errors were encountered: