alkhachatryan/encryptable – Laravel package to encrypt the database columns and tables

GitHub page https://github.com/alkhachatryan/encryptable

Laravel package to encrypt / decrypt the database tables / columns

Installation

Via Composer

$ composer require alkhachatryan/encryptable

Usage

class User extends Model
{
    use Encryptable;

    /**
     * Fillable columns
     */
    protected $fillable = ['name', 'email', 'password'];

    /**
     * Columns which should be encrypted
     */
    protected $encryptable = ['name', 'email'];
}

 

Back to Top