Download the PHP package subdesign/laravel-gdpr-nullify without Composer
On this page you can find all versions of the php package subdesign/laravel-gdpr-nullify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download subdesign/laravel-gdpr-nullify
More information about subdesign/laravel-gdpr-nullify
Files in subdesign/laravel-gdpr-nullify
Package laravel-gdpr-nullify
Short Description Easily nullify user data for GDPR compilance
License MIT
Homepage https://github.com/subdesign/laravel-gdpr-nullify
Informations about the package laravel-gdpr-nullify
Laravel GDPR Nullify
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
Setup
Add the following trait to your Eloquent model
Next, add a property to this model which field(s) you want to nullify
Usage
Use the nullify()
method on a model instance
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.