• Spatie Activity Log

Spatie Activity Log

Plugin information

by Alex Justesen

Admin panel Spatie

A resource and relation manager that show you all of the activity logs created using the spatie/laravel-activitylog package.

Support

#spatie-activity-log on Discord

Views

8811

License

MIT

Documentation

Installation

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,
],
 
];

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 AlexJustesen\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 RELEASES 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