My Blog Posts

Laravel Database Encryption Package

Laravel Database Encryption Package

Laravel's standard Encryption through a property Uses :

use betterapp\LaravelDbEncrypter\Traits\EncryptableDbAttribute;

class Client extends Eloquent
    use EncryptableDbAttribute;

    /** @var array The attributes that should be encrypted/decrypted */
    protected $encryptable = [

Note: encrypted data is longer than their plain text counterparts.  Data TEXTColumn it is recommended to be stored as:

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

Share this article

Comments (0)