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.
You can install the package via composer:
composer require alexjustesen/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,
],
];
This package will automatically register the ActivityResource
. You'll be able to see it when you visit your Filament admin panel.
You can customise the navigation group for the ActivityResource
by publishing the configuration file and updating the resource.group
value.
You can customise the navigation group for the ActivityResource
by publishing the configuration file and updating the resource.sort
value.
If you have a model that uses the Spatie\Activitylog\Traits\LogsActivity
trait, you can add the AlexJustesen\FilamentSpatieLaravelActivitylog\RelationManagers\ActivitiesRelationManager
relationship manager to your Filament resource to display all of the activity logs that are performed on your model.
composer test
Please see RELEASES for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
- Alex Justesen
- Ryan Chandler (Original creator)
- All Contributors
The MIT License (MIT). Please see License File for more information.