jeffersongoncalves / filament-lgpd-consent
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.
Package info
github.com/jeffersongoncalves/filament-lgpd-consent
pkg:composer/jeffersongoncalves/filament-lgpd-consent
Requires
- php: ^8.2
- filament/filament: ^5.3
- jeffersongoncalves/filament-plugin-core: ^3.0
- jeffersongoncalves/laravel-lgpd-consent: ^1.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- jeffersongoncalves/pest-plugin-database-migrations: ^1.0
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Filament LGPD Consent
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
- filament-lgpd: personal data inventory.
- filament-lgpd-dsar: data subject requests (art. 18).
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.
