- What is mradder/filament-logger used for in Laravel?
- It is a community-maintained audit and activity log package for Filament admin panels built on spatie/laravel-activitylog. It gives you a ready-made activity resource with searchable filters, structured diffs, saved review tabs, date presets, CSV/JSON exports, and dashboard widgets. Use it to review admin activity, security events, and custom domain events without building a custom audit UI.
- How do I install Filament Logger in a Laravel Filament app?
- Install it with composer require mradder/filament-logger, run php artisan filament-logger:install to publish config and migrations, then migrate the database. Register the activity resource in your Filament panel provider so admins can review logs. The README recommends a non-production spike first because authorization, redaction, and retention need validation.
- Which Laravel, PHP, and Filament versions are supported?
- The package supports PHP 8.2, Laravel 11, 12, and 13 contracts, and Filament 3.x, 4.3.1+, and 5.x. Filament 4 support starts at 4.3.1 because of an upstream security issue, so treat that version as a hard gate. Check your exact Laravel, PHP, and Filament matrix before rollout.
- Does Filament Logger log model and resource create, update, and delete automatically?
- Yes, it provides automatic logging for resource and model lifecycles including create, update, and delete. It also supports auth events and notifications. The Spatie activity table stores the records, while Filament Logger adds the review UI and automation layer.
- Can I log authentication events and custom domain events with Filament Logger?
- Yes, auth events and custom domain events are supported with minimal setup. You can log events that matter to your domain without building a separate audit UI. Use the package configuration and Filament resource to review those records alongside model changes.
- How do CSV and JSON exports work for audit data in Filament Logger?
- Filament Logger can export filtered audit data to CSV and JSON for compliance, support, and incident response. Exports respect the filters you apply in the activity resource, so reviewers can narrow by user, event, date, or other criteria before exporting. Treat export access as a governance control because audit data can contain sensitive fields.
- How do I configure redaction, ignored fields, IP anonymization, and guard scoping?
- The README documents guard scoping, redaction, anonymized IPs, ignored fields, pruning, custom events, exports, and widgets. Configure redaction and ignored fields before broad rollout so sensitive data does not land in the activity table or exports. Validate guard scoping and IP anonymization against your roles, policies, multi-tenancy, and multi-guard panels.
- Is Filament Logger suitable for compliance-grade immutable audit logs?
- It is best treated as an audit-review accelerator for existing Filament panels, not a compliance-grade immutable audit platform. It is a weaker fit when requirements demand WORM storage, legal hold, tamper-evident chains, or cross-system audit aggregation. Spatie activitylog is mature, but the package itself adds UI and automation rather than an immutable audit service.
- How do pruning and expected activity volume affect production use?
- Activity volume drives database growth, pruning load, and export cost, so estimate your expected events before rollout. The package documents pruning, but you must decide retention periods and validate that pruning will not destroy evidence. A pilot on one panel with a small model and event set helps measure volume and query performance.
- What are the maintenance risks and alternatives to mradder/filament-logger?
- The main risk is community-maintained dependency risk: the package has low adoption, no SLA, and is a continuation of an earlier package by another maintainer. The value is mainly the Filament UI and automation layer over Spatie activitylog, so assess whether you can fork or replace that UI layer if needed. For stricter audit needs, compare against an internal audit UI or a commercial audit product.