PHPackages                             subdesign/laravel-gdpr-nullify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. subdesign/laravel-gdpr-nullify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

subdesign/laravel-gdpr-nullify
==============================

Easily nullify user data for GDPR compilance

1.0.0(7y ago)051MITPHP

Since Dec 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/subdesign/laravel-gdpr-nullify)[ Packagist](https://packagist.org/packages/subdesign/laravel-gdpr-nullify)[ Docs](https://github.com/subdesign/laravel-gdpr-nullify)[ RSS](/packages/subdesign-laravel-gdpr-nullify/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

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
------------

[](#requirements)

Laravel 5.5

Installation
------------

[](#installation)

Install with composer

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

Setup
-----

[](#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
-----

[](#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
----------

[](#dependency)

The package has a dependency which is automatically installed:

Credits
-------

[](#credits)

- [Barna Szalai](https://github.com/subdesign)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity61

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2702d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05bd66ff1577396f52eed671a80ec1d85803f4b55c8f9af8ebae464d1285944b?d=identicon)[bszalai](/maintainers/bszalai)

---

Tags

laravelgdpr

### Embed Badge

![Health badge](/badges/subdesign-laravel-gdpr-nullify/health.svg)

```
[![Health](https://phpackages.com/badges/subdesign-laravel-gdpr-nullify/health.svg)](https://phpackages.com/packages/subdesign-laravel-gdpr-nullify)
```

###  Alternatives

[hyn/multi-tenant

Run multiple websites using the same laravel installation while keeping tenant specific data separated for fully independant multi-domain setups.

2.6k1.1M9](/packages/hyn-multi-tenant)[whitecube/laravel-cookie-consent

Register, configure and ask for cookies consent in a EU-compliant way.

489563.9k1](/packages/whitecube-laravel-cookie-consent)[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[scify/laravel-cookie-guard

A Laravel package that provides a Cookies consent floating window and publishes the Cookies for the different consent categories

13714.3k](/packages/scify-laravel-cookie-guard)[ronasit/laravel-helpers

Provided helpers function and some helper class.

1475.7k13](/packages/ronasit-laravel-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
