PHPackages                             adrolli/filament-spatie-laravel-activitylog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. adrolli/filament-spatie-laravel-activitylog

ActiveLibrary

adrolli/filament-spatie-laravel-activitylog
===========================================

View your activity logs inside of Filament.

v1.1(2y ago)5152MITPHPPHP ^8.0 || ^8.1 || ^8.2

Since Jul 31Pushed 2y agoCompare

[ Source](https://github.com/adrolli/filament-spatie-laravel-activitylog)[ Packagist](https://packagist.org/packages/adrolli/filament-spatie-laravel-activitylog)[ Docs](https://github.com/alexjustesen/filament-spatie-laravel-activitylog)[ GitHub Sponsors](https://github.com/alexjustesen)[ RSS](/packages/adrolli-filament-spatie-laravel-activitylog/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (14)Versions (3)Used By (0)

View your activity logs inside of Filament.
===========================================

[](#view-your-activity-logs-inside-of-filament)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f267a8a41ee8236d4117add8e11b80256365a4b914b8d26498b8385a9b3291aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c65786a7573746573656e2f66696c616d656e742d7370617469652d6c61726176656c2d61637469766974796c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexjustesen/filament-spatie-laravel-activitylog)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9db76e121bd03e34bca4e9d9712c551631d85cc782784ef087ebdbadfb95e3d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c65786a7573746573656e2f66696c616d656e742d7370617469652d6c61726176656c2d61637469766974796c6f672f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/alexjustesen/filament-spatie-laravel-activitylog/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/d4fcf534ffaffeb032145aac31e9e2279dd76a993c2c4dd564e4e77eff57c737/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c65786a7573746573656e2f66696c616d656e742d7370617469652d6c61726176656c2d61637469766974796c6f672f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/alexjustesen/filament-spatie-laravel-activitylog/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6a02ec7f90fc8e062c971c24ff27acd5b4dc7a37c8211e2a168e6f1425210c59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c65786a7573746573656e2f66696c616d656e742d7370617469652d6c61726176656c2d61637469766974796c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexjustesen/filament-spatie-laravel-activitylog)

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

[](#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' => [
        'filament-resource' => AlexJustesen\FilamentSpatieLaravelActivitylog\Resources\ActivityResource::class,
        'group' => null,
        'sort'  => null,
    ],

    'paginate' => [5, 10, 25, 50],

];
```

Usage
-----

[](#usage)

This package will automatically register the `ActivityResource` class specified in the configuration `resource.filament-resource`. You'll be able to see it when you visit your Filament admin panel.

Customising the ActivityResource
--------------------------------

[](#customising-the-activityresource)

You can swap out the `ActivityResource` used by publishing the configuration file and updating the `resource.filament-resource` value. Use this to create your own `ActivityResource` class and extend the original at `AlexJustesen\FilamentSpatieLaravelActivitylog\Resources\ActivityResource::class`. This will allow you to customise everything such as the views, table, form and permissions. If you wish to change the resource on List and View page be sure to replace the `getPages` method on the new resource and create your own version of the `ListPage` and `ViewPage` classes to reference the custom `ActivityResource`.

Customising the group
---------------------

[](#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
-----------------------

[](#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
--------------------

[](#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.

### Show the `subject` column on custom relation managers

[](#show-the-subject-column-on-custom-relation-managers)

When using the relationship manager the `subject` column isn't shown because the subject is the parent record. There are some cases (like when aggregating activities from child records) where the subject might be another record, and you want to show this column. In those cases you can add the next code to your relation manager:

```
public function hideSubjectColumn(): bool
{
    return false;
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [RELEASES](https://github.com/alexjustesen/filament-spatie-laravel-activitylog/releases) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Alex Justesen](https://github.com/alexjustesen)
- [Ryan Chandler](https://github.com/ryangjchandler) (Original creator)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

990d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40421928?v=4)[Alf Drollinger](/maintainers/adrolli)[@adrolli](https://github.com/adrolli)

---

Top Contributors

[![ryangjchandler](https://avatars.githubusercontent.com/u/41837763?v=4)](https://github.com/ryangjchandler "ryangjchandler (30 commits)")[![alexjustesen](https://avatars.githubusercontent.com/u/1144087?v=4)](https://github.com/alexjustesen "alexjustesen (30 commits)")[![alexbirtwell](https://avatars.githubusercontent.com/u/31503842?v=4)](https://github.com/alexbirtwell "alexbirtwell (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")[![MACscr](https://avatars.githubusercontent.com/u/1404944?v=4)](https://github.com/MACscr "MACscr (4 commits)")[![dsbilling](https://avatars.githubusercontent.com/u/9788214?v=4)](https://github.com/dsbilling "dsbilling (3 commits)")[![simonbuehler](https://avatars.githubusercontent.com/u/78061?v=4)](https://github.com/simonbuehler "simonbuehler (3 commits)")[![atmonshi](https://avatars.githubusercontent.com/u/1952412?v=4)](https://github.com/atmonshi "atmonshi (3 commits)")[![pathros](https://avatars.githubusercontent.com/u/1978980?v=4)](https://github.com/pathros "pathros (2 commits)")[![underdpt](https://avatars.githubusercontent.com/u/8122137?v=4)](https://github.com/underdpt "underdpt (2 commits)")[![saulens22](https://avatars.githubusercontent.com/u/9000854?v=4)](https://github.com/saulens22 "saulens22 (2 commits)")[![adrolli](https://avatars.githubusercontent.com/u/40421928?v=4)](https://github.com/adrolli "adrolli (2 commits)")[![zerossB](https://avatars.githubusercontent.com/u/8009480?v=4)](https://github.com/zerossB "zerossB (1 commits)")[![gpibarra](https://avatars.githubusercontent.com/u/21188012?v=4)](https://github.com/gpibarra "gpibarra (1 commits)")[![ihahachi](https://avatars.githubusercontent.com/u/7762172?v=4)](https://github.com/ihahachi "ihahachi (1 commits)")[![intrepidws](https://avatars.githubusercontent.com/u/125735?v=4)](https://github.com/intrepidws "intrepidws (1 commits)")[![mperusso](https://avatars.githubusercontent.com/u/18220220?v=4)](https://github.com/mperusso "mperusso (1 commits)")[![robertorinaldi-dev](https://avatars.githubusercontent.com/u/59119871?v=4)](https://github.com/robertorinaldi-dev "robertorinaldi-dev (1 commits)")

---

Tags

laravelfilament-spatie-laravel-activitylogalexjustesen

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/adrolli-filament-spatie-laravel-activitylog/health.svg)

```
[![Health](https://phpackages.com/badges/adrolli-filament-spatie-laravel-activitylog/health.svg)](https://phpackages.com/packages/adrolli-filament-spatie-laravel-activitylog)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

27584.7k16](/packages/bezhansalleh-filament-plugin-essentials)[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

7565.0k4](/packages/guava-filament-modal-relation-managers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
