Skip to content

mohameedsherif/filament-spatie-laravel-activitylog

 
 

Repository files navigation

View your activity logs inside of Filament.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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 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

License

The MIT License (MIT). Please see License File for more information.

About

View your activity logs inside of Filament. ⚡️

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%