v1.2.0 - Filament v5 Support & Core Enhancements
This major release introduces full compatibility with both Filament v4 and v5, ensuring a seamless upgrade path for all users. We've also packed in significant architectural improvements, a strictly typed Enum system, and new features like Batch Activity tracking and Filament Cluster support.
🚀 Key Features
- Filament v5 Compatibility: Native support for Filament v5 while maintaining full backward compatibility with v4.
- Strict Enums (
ActivityLogEvent): migrated activity events to strict Enums, bringing type safety, consistent badges, and customizable colors/icons to your logs. - Cluster Support: You can now nest the Activity Log resource inside any Filament Cluster using the simple
$plugin->cluster('System')configuration. - Batch Activity Context: Debug complex jobs easily with the new "View Batch" action, allowing you to filter and view all activities generated by a single request or job.
- Smart Naming: A new standardized
ActivityLogTitlehelper ensures your subject names are resolved consistently everywhere. ImplementHasActivityLogTitleon your models for total control.
✨ Improvements
- Performance: Fixed N+1 query issues in the Resource and User Activities page by eager loading relations by default.
- UI Polish: The User Activities Page has been restyled to match the Timeline view perfectly, complete with proper icons and layout.
- Enhanced Installer: The
php artisan filament-activity-log:installcommand now handles everything—config, assets, and migrations—in one go. - Localization: Achieved 100% translation coverage across the entire package.
🐛 Fixes
- Resolved
php artisan view:cacheerrors caused by direct Heroicon component usage. - Fixed CI/CD pipeline issues for stricter PHP 8.3/8.4 compliance.
- Corrected styling inconsistencies in the User Activities page description.
Upgrade Guide
This update is fully backward compatible. To upgrade:
composer require alizharb/filament-activity-log:^1.2.0
php artisan filament:upgrade