kduma/eloquent-encryptable
最新稳定版本:v1.3.0
Composer 安装命令:
composer require kduma/eloquent-encryptable
包简介
Adds possibility to encrypt fields in Laravel Eloquent models.
README 文档
README
Adds possibility to encrypt fields in Laravel Eloquent models.
Check full documentation here: opensource.duma.sh/libraries/php/eloquent-encryptable
Setup
Add the package to the require section of your composer.json and run composer update
"kduma/eloquent-encryptable": "^1.1"
Prepare models
In your model add following lines:
use \KDuma\Eloquent\Encryptable;
protected $encrypted=['list', 'of', 'fields', 'you', 'wan\'t', 'to', 'encrypt'];
Usage
It will be automaticly encrypting and decrypting fields defined in $encrypted property of your model.
Those fields must be string or text for longer values.
YOTTARAM
A special thanks to Jonathan Stavis, an original code creator that this package is based on.
Packagist
View this package on Packagist.org: kduma/eloquent-encryptable
统计信息
- 总下载量: 2.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-31