View your activity logs inside of Filament.
This package provides a Filament resource that shows you all of the activity logs created using the spatie/laravel-activitylog
package. It also provides a relationship manager for related models.
Installation
You can install the package via composer:
composer require ryangjchandler/filament-spatie-laravel-activitylog
You can publish the config file with:
php artisan vendor:publish --tag="filament-spatie-activitylog-config"
This is the contents of the published config file:
return [
'resource' => [
'group' => null,
'sort' => null,
],
];
Usage
This package will automatically register the ActivityResource
. You'll be able to see it when you visit your Filament admin panel.
Customising the group
You can customise the navigation group for the ActivityResource
by publishing the configuration file and updating the resource.group
value.
Customising the sorting
You can customise the navigation group for the ActivityResource
by publishing the configuration file and updating the resource.sort
value.
Relationship manager
If you have a model that uses the Spatie\Activitylog\Traits\LogsActivity
trait, you can add the RyanChandler\FilamentSpatieLaravelActivitylog\RelationManagers\ActivitiesRelationManager
relationship manager to your Filament resource to display all of the activity logs that are performed on your model.
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.