mike-zange/encryptable
Composer 安装命令:
composer require mike-zange/encryptable
包简介
Encryptable Trait for Laravel to make individual fields encrypted
README 文档
README
Reusable trait for encrypting Laravel model fields.
Requirements
- Any fields that are encryptable need to be changed to type "text" in the database, due to the encrypted data string being much longer than the original data.
PHP >=7.0Laravel ~5.6
Installation
-
As always: back up your database - I am not responsible for any data loss
-
Install the package via Composer:
composer require mike-zange/laravel-encryptable -
On your model add:
use Encryptable; public $encryptable = [ 'field_1', 'field_2', 'field_3', 'field_4' ];
The trait will take care of the rest
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-01