Search by

jeffersongoncalves / filament-lgpd-retention

jeffersongoncalves

Filament plugin for laravel-lgpd-retention: preview and run LGPD data retention, re-apply erasure after a backup restore, and browse the tombstones of anonymized columns.

3.0.0 2026-11-16 22:52 UTC

This package is auto-updated.

Last update: 2026-11-16 22:53:01 UTC


README

Filament LGPD Retention

Filament LGPD Retention

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads License

The Filament panel for laravel-lgpd-retention. Under the LGPD (art. 15 and 16), personal data is eliminated once its retention period ends. This page lets you see what is due, run the retention, and erase again the data a restored backup brought back.

Features

  • Preview: how many records would be anonymized now, per model and column. Nothing is changed.
  • Apply retention: anonymizes every column whose period has ended, each with its own strategy.
  • Re-apply after backup: anonymizes again the columns that a restored backup brought back.
  • The list of anonymized columns (tombstones), filterable by model and column. Tombstones hold no personal data.
  • English and Brazilian Portuguese.

Compatibility

Plugin Version Filament
1.x 3.x
2.x 4.x
3.x 5.x

Installation

You can install the package via composer:

composer require jeffersongoncalves/filament-lgpd-retention:"^3.0"
php artisan vendor:publish --tag="lgpd-retention-migrations"
php artisan migrate

Usage

use JeffersonGoncalves\Filament\LgpdRetention\LgpdRetentionPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            LgpdRetentionPlugin::make()
                ->navigationGroup('LGPD')             // default: no group
                ->navigationSort(30)
                ->navigationIcon('heroicon-o-clock')
                ->slug('data-retention'),
        ]);
}

All fluent methods are optional. The buttons run in the web request: keep php artisan lgpd:retention scheduled daily as the main way to apply retention, and use the panel to check and to act after a restore.

The resource has no authorization of its own: register it only on panels whose users may erase personal data, or add a policy for JeffersonGoncalves\LgpdRetention\Models\Tombstone.

Related plugins

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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