subdesign/laravel-gdpr-nullify 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

subdesign/laravel-gdpr-nullify

Composer 安装命令:

composer require subdesign/laravel-gdpr-nullify

包简介

Easily nullify user data for GDPR compilance

README 文档

README

If you are affected by GDPR, you may find yourself in situation, when someone ask you to delete his/her data. You don't need to delete their records, just hide the sensible fields. This way your database remains consistent (eg. for history, statistics) but you finally satisfy the request.

With this package you can easily "nullify" specific fields for any Eloquent Model.

Requirements

Laravel 5.5

Installation

Install with composer

composer require subdesign/laravel-gdpr-nullify:^1.0.0

Setup

Add the following trait to your Eloquent model

use Subdesign\LaravelGdprNullify\GdprNullifyTrait;

class YourModel extends Model {

    use GdprNullifyTrait;

    ...
}

Next, add a property to this model which field(s) you want to nullify

protected $gdprFields = ['name', 'email'];

Usage

Use the nullify() method on a model instance

$user = App\User::find(1);

$user->nullify();

In the example, the name and email fields will be filled with random characters in the length of the database fields.

Dependency

The package has a dependency which is automatically installed: https://github.com/doctrine/dbal/tree/2.9

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固