Search by

jeffersongoncalves / filament-lgpd-consent

jeffersongoncalves

Filament plugin for laravel-lgpd-consent: browse the append-only LGPD consent ledger (art. 8) by purpose, terms version and decision, with the proof of each consent.

3.0.0 2026-11-16 22:40 UTC

This package is auto-updated.

Last update: 2026-11-16 22:42:04 UTC


README

Filament LGPD Consent

Filament LGPD Consent

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

Browse the consent ledger of laravel-lgpd-consent from your Filament panel. Each row is one consent decision. When you need to prove a consent (LGPD art. 8, §2), the record shows who decided, for which purpose and which version of the terms, when, from where (IP address, user agent, source), and its metadata.

Features

  • Consents of users and of visitors without an account (cookie banner).
  • Filters by purpose, terms version, decision (granted or revoked) and visitors.
  • Grants given for an older version of the terms are flagged: they no longer count as consent.
  • Read-only, like the ledger itself: there is no create, edit or delete.
  • 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-consent:"^3.0"
php artisan vendor:publish --tag="lgpd-consent-migrations"
php artisan migrate

Usage

use JeffersonGoncalves\Filament\LgpdConsent\LgpdConsentPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            LgpdConsentPlugin::make()
                ->navigationGroup('LGPD')             // default: no group
                ->navigationSort(20)
                ->navigationIcon('heroicon-o-hand-thumb-up')
                ->slug('consents'),
        ]);
}

All fluent methods are optional. Purposes and their current terms version are configured in laravel-lgpd-consent's lgpd-consent config.

The resource has no authorization of its own: register it only on panels whose users may see consent records, or add a policy for JeffersonGoncalves\LgpdConsent\Models\ConsentRecord.

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.