Search by

jeffersongoncalves / filament-lgpd-audit-log

jeffersongoncalves

Filament plugin for laravel-lgpd-audit-log: browse who viewed, changed, exported or anonymized personal data, and verify the hash chain of the LGPD audit log from your panel.

3.0.0 2026-11-16 23:50 UTC

This package is auto-updated.

Last update: 2026-11-16 23:50:52 UTC


README

Filament LGPD Audit Log

Filament LGPD Audit Log

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

Browse the audit trail of laravel-lgpd-audit-log from your Filament panel: who viewed, changed, exported or anonymized whose personal data, when and why. You can also check that nobody tampered with it.

Features

  • Every entry: when, who, action, data subject, columns (names only, never values) and purpose.
  • Filters by action and by data subject model.
  • View page with the IP address, user agent, metadata and the entry's hash.
  • Verify chain: checks the hash chain and tells you which entry was altered, removed or inserted.
  • Read-only, like the log itself.
  • English and Brazilian Portuguese. Custom actions you record are shown as they are.

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-audit-log:"^3.0"
php artisan vendor:publish --tag="lgpd-audit-log-migrations"
php artisan migrate

Usage

use JeffersonGoncalves\Filament\LgpdAuditLog\LgpdAuditLogPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            LgpdAuditLogPlugin::make()
                ->navigationGroup('LGPD')             // default: no group
                ->navigationSort(50)
                ->navigationIcon('heroicon-o-document-magnifying-glass')
                ->slug('audit-log'),
        ]);
}

All fluent methods are optional. Opening an entry in the panel is not logged by itself. If you want accesses to the log to be audited too, call LgpdAuditLog::record() in a subclass of the view page.

The resource has no authorization of its own: register it only on panels whose users may read the audit log, or add a policy for JeffersonGoncalves\LgpdAuditLog\Models\AuditLog.

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.