Search by

jeffersongoncalves / filament-quebec-audit-log

jeffersongoncalves

Filament admin for the Quebec Law 25 audit log: who viewed, changed, exported or anonymized whose personal information, with the hash chain check

3.0.0 2026-11-18 05:50 UTC

This package is auto-updated.

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


README

Filament Quebec Audit Log

Filament Quebec Audit Log

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

Browse the audit trail of laravel-quebec-audit-log from your Filament panel: who viewed, changed, exported or anonymized whose personal information, when and why, to show the protection Quebec's private sector privacy act (Law 25) expects (ss. 3.1 and 10). You can also check that nobody tampered with it.

Features

  • Every entry: when, who, action, person concerned, columns (names only, never values) and purpose.
  • Filters by action and by model of the person concerned.
  • View page with the IP address, user agent, metadata and the entry's hash.
  • Who opens the list or an entry, and who verifies the chain, is logged too.
  • Verify chain: checks the hash chain and tells you which entry was altered, removed or inserted.
  • Read-only, like the log itself.
  • 19 languages. 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-quebec-audit-log:"^3.0"
php artisan vendor:publish --tag="quebec-audit-log-migrations"
php artisan migrate

Usage

use JeffersonGoncalves\Filament\QuebecAuditLog\QuebecAuditLogPlugin;

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

All fluent methods are optional. Reading the log is logged too, with the purpose Audit log review: opening the list or an entry adds a viewed entry (its subject is the entry opened), and checking the chain adds a verified entry with the result. Turn it off with ->logViews(false).

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\QuebecAuditLog\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.