Search by

jeffersongoncalves / filament-lgpd-dsar

jeffersongoncalves

Filament plugin to handle LGPD data subject requests (art. 18): verify, export, erase, reject and track the 15-day deadline from your panel.

3.0.0 2026-11-16 21:48 UTC

This package is auto-updated.

Last update: 2026-11-16 21:49:47 UTC


README

Filament LGPD DSAR

Filament LGPD DSAR

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

A Filament panel for the data subject requests of the Brazilian General Data Protection Law (LGPD, art. 18). It is the UI of laravel-lgpd-dsar: every action calls that package, so the rules it enforces (verify first, automatic types only, 15-day deadline) stay in one place.

Features

  • Register a request for any of the 9 rights of art. 18. The deadline is set from lgpd-dsar.deadline_days.
  • Verify identity: link the request to the data subject's record. Nothing is exported or erased before this.
  • Fulfil access and portability (JSON export, downloadable from the request) and anonymization and deletion (erases the subject's records).
  • Complete the rights answered by hand (confirmation, correction, sharing information...) with the response you gave, or reject with a reason.
  • Overdue requests in red, an "Overdue" filter, and a navigation badge with open requests (red when one is overdue).
  • 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-dsar:"^3.0"
php artisan vendor:publish --tag="lgpd-dsar-migrations"
php artisan migrate

Set up laravel-lgpd first: the models listed in lgpd.models are the ones a request can be linked to, exported and erased.

Usage

use JeffersonGoncalves\Filament\LgpdDsar\LgpdDsarPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            LgpdDsarPlugin::make()
                ->navigationGroup('LGPD')                 // default: no group
                ->navigationSort(10)
                ->navigationIcon('heroicon-o-shield-check')
                ->slug('data-subject-requests')
                ->subjectModels([User::class]),           // default: lgpd.models
        ]);
}

All fluent methods are optional. The export disk and the deadline are configured in laravel-lgpd-dsar's lgpd-dsar config. Keep the export disk private: the file holds the data subject's personal data.

The resource has no authorization of its own: register it only on panels whose users handle privacy requests, or add a policy for JeffersonGoncalves\LgpdDsar\Models\DataSubjectRequest.

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.