pmedynskyi/laravel-encrypt
最新稳定版本:1.0.0
Composer 安装命令:
composer require pmedynskyi/laravel-encrypt
包简介
README 文档
README
-
Use trait for your models when you want to hash attribute, in the database type of field for the attribute should be
TEXT: -
Example for Model:
use Illuminate\Database\Eloquent\Casts\Attribute;
...implements ...IModelUseEncryptedAttributes{
use ModelUseEncryptedAttributes;
...
public function attributeOne() :Attribute
{
return $this->encryptedAttribute();
}
...
public function attributeTwo() :Attribute
{
return $this->encryptedAttribute();
}
...
- Attribute will automatically been hashed for save/update and uhashed when you will initialize the model
统计信息
- 总下载量: 517
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-09-01