Search by

jeffersongoncalves / filament-ccpa-retention

jeffersongoncalves

Filament plugin for laravel-ccpa-retention: CCPA retention run from your panel: preview what expires, deidentify it and re-apply deletion after a backup restore.

3.0.0 2026-11-17 19:55 UTC

This package is auto-updated.

Last update: 2026-11-17 20:09:50 UTC


README

Filament CCPA Retention

Filament CCPA Retention

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

The Filament panel for laravel-ccpa-retention. Under the CCPA, personal information is kept no longer than reasonably necessary for the purpose you disclosed (Cal. Civ. Code §1798.100(a)(3)). 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 data.
  • 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-ccpa-retention:"^3.0"
php artisan vendor:publish --tag="ccpa-retention-migrations"
php artisan migrate

Usage

use JeffersonGoncalves\Filament\CcpaRetention\CcpaRetentionPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            CcpaRetentionPlugin::make()
                ->navigationGroup('CCPA')             // 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 ccpa: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\CcpaRetention\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.