Laravel Database Encryption Pack

Laravel's standard Encryption through a property Uses :

usebetterapp\LaravelDbEncrypter\Traits\EncryptableDbAttribute;classClientextendsEloquent{ useEncryptableDbAttribute; /** @var array The attributes that should be encrypted/decrypted */protected $encryptable = [ 'id_number', 'email', ];}

Note: encrypted data is longer than plaintext equivalents.  Data TEXTcolumn is recommended to be stored as:

If your existing data is not encrypted, the column is returned as is. Package on GitHub betterapp / laravel-db-encrypter you can check it at .


KARABAY A, 2020 . Laravel Database Encryption Pack,

(Accessed January 31, 2020).

  Share this post

Comments (0)


Sign up for the email newsletter to be the first to know about my blog posts