Search by

jeffersongoncalves / filament-quebec-retention

jeffersongoncalves

Filament admin for Quebec Law 25 retention: tombstones of destroyed or anonymized personal information, re-applied after a backup restore

3.0.0 2026-11-18 05:48 UTC

This package is auto-updated.

Last update: 2026-11-18 06:03:25 UTC


README

Filament Quebec Retention

Filament Quebec Retention

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

The Filament panel for laravel-quebec-retention. Under Quebec's private sector privacy act (Law 25), personal information is destroyed or anonymized once the purposes for which it was collected are achieved (s. 23). This page lets you see what is due, run the retention, and erase again the data a restored backup brought back.

Features

  • Preview: how many records would be anonymized now, per model and column. Nothing is changed.
  • Apply retention: anonymizes every column whose period has ended, each with its own strategy.
  • Re-apply after backup: anonymizes again the columns that a restored backup brought back.
  • The list of anonymized columns (tombstones), filterable by model and column. Tombstones hold no personal information.
  • 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-retention:"^3.0"
php artisan vendor:publish --tag="quebec-retention-migrations"
php artisan migrate

Usage

use JeffersonGoncalves\Filament\QuebecRetention\QuebecRetentionPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            QuebecRetentionPlugin::make()
                ->navigationGroup('Quebec')             // default: no group
                ->navigationSort(30)
                ->navigationIcon('heroicon-o-clock')
                ->slug('data-retention'),
        ]);
}

All fluent methods are optional. The buttons run in the web request: keep php artisan quebec:retention scheduled daily as the main way to apply retention, and use the panel to check and to act after a restore.

The resource has no authorization of its own: register it only on panels whose users may erase personal data, or add a policy for JeffersonGoncalves\QuebecRetention\Models\Tombstone.

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.