jeffersongoncalves / filament-quebec-consent
Filament admin for Quebec Law 25 consent: the consent ledger per purpose, per user and visitor, with history and proof
Package info
github.com/jeffersongoncalves/filament-quebec-consent
pkg:composer/jeffersongoncalves/filament-quebec-consent
Requires
- php: ^8.2
- filament/filament: ^5.3
- jeffersongoncalves/filament-plugin-core: ^3.0
- jeffersongoncalves/laravel-quebec-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 Quebec Consent
Browse the consent ledger of laravel-quebec-consent from your Filament panel. Each row is one consent decision. When you need to prove a consent, manifest, free, enlightened and given for a specific purpose under Quebec's private sector privacy act (Law 25) (s. 14), 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.
- 19 languages.
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-quebec-consent:"^3.0" php artisan vendor:publish --tag="quebec-consent-migrations" php artisan migrate
Usage
use JeffersonGoncalves\Filament\QuebecConsent\QuebecConsentPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuebecConsentPlugin::make() ->navigationGroup('Quebec') // 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-quebec-consent's quebec-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\QuebecConsent\Models\ConsentRecord.
Related plugins
- filament-quebec: personal information inventory.
- filament-quebec-requests: access, rectification, de-indexation and portability requests (ss. 27 to 32).
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.
