Laravel package to encrypt / decrypt the database tables / columns
Laravel package to encrypt / decrypt the database tables / columns
Via Composer
$ composer require alkhachatryan/encryptable
class User extends Model
{
use Encryptable;
/**
* Fillable columns
*/
protected $fillable = ['name', 'email', 'password'];
/**
* Columns which should be encrypted
*/
protected $encryptable = ['name', 'email'];
}
If you discover any security related issues, please email author email instead of using the issue tracker.
license. Please see the license file for more information.