jeffersongoncalves / filament-quebec-minors
Filament admin for Quebec Law 25 minors: age checks and links to the person having parental authority for users under 14
Package info
github.com/jeffersongoncalves/filament-quebec-minors
pkg:composer/jeffersongoncalves/filament-quebec-minors
Requires
- php: ^8.2
- filament/filament: ^5.3
- jeffersongoncalves/filament-plugin-core: ^3.0
- jeffersongoncalves/laravel-quebec-minors: ^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 Minors
Manage the minors' consent records kept by laravel-quebec-minors in your Filament panel. Under Quebec's private sector privacy act (Law 25), information about a minor under 14 is collected and used only with the consent of the person having parental authority or the tutor (ss. 4.1 and 14).
Features
- Age checks: a read-only list of each result, with the age at the check, the method (marked as reliable or not), the provider and the expiry date. Filter the users under 14. Your app's age check flow records them. Nobody types them in by hand.
- Parental links: link a minor's account to the person having parental authority or the tutor, then verify or revoke the link. Once verified, the minor's consent counts.
- 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-minors:"^3.0" php artisan vendor:publish --tag="quebec-minors-migrations" php artisan migrate
Usage
use JeffersonGoncalves\Filament\QuebecMinors\QuebecMinorsPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuebecMinorsPlugin::make() ->navigationGroup('Quebec') // default: no group ->navigationSort(7) ->subjectModel(\App\Models\User::class) // default: auth.providers.users.model ->subjectTitleAttribute('name'), // shown next to the id and used to search accounts ]); }
All fluent methods are optional.
The resources have no authorization of their own. Register them only on panels whose users handle privacy, or add policies for the
JeffersonGoncalves\QuebecMinors\Models\*models.
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.
