PHPackages                             alexjustesen/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. alexjustesen/filament-spatie-laravel-activitylog

Abandoned → [pxlrbt/filament-activity-log](/?search=pxlrbt%2Ffilament-activity-log)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

alexjustesen/filament-spatie-laravel-activitylog
================================================

View your activity logs inside of Filament.

v0.7.0(2y ago)7966.9k↓13.2%21[1 issues](https://github.com/alexjustesen/filament-spatie-laravel-activitylog/issues)MITPHPPHP ^8.0 || ^8.1 || ^8.2

Since Dec 30Pushed 2y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (14)Versions (16)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)

Warning

Version ^0.7 supports Filament v3.

You can install the package via composer:

```
// For Filament v3
composer require alexjustesen/filament-spatie-laravel-activitylog:^0.7

// For Filament v2
composer require alexjustesen/filament-spatie-laravel-activitylog:^0.6
```

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

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~51 days

Recently: every ~59 days

Total

13

Last Release

987d ago

PHP version history (2 changes)v0.0.1PHP ^8.0

v0.6.2PHP ^8.0 || ^8.1 || ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2214164c880af0c0f116a6fccbab39e813d9714134b7365441fa411ee519475d?d=identicon)[alexjustesen](/maintainers/alexjustesen)

---

Top Contributors

[![alexjustesen](https://avatars.githubusercontent.com/u/1144087?v=4)](https://github.com/alexjustesen "alexjustesen (31 commits)")[![ryangjchandler](https://avatars.githubusercontent.com/u/41837763?v=4)](https://github.com/ryangjchandler "ryangjchandler (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![alexbirtwell](https://avatars.githubusercontent.com/u/31503842?v=4)](https://github.com/alexbirtwell "alexbirtwell (9 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)")[![atmonshi](https://avatars.githubusercontent.com/u/1952412?v=4)](https://github.com/atmonshi "atmonshi (3 commits)")[![simonbuehler](https://avatars.githubusercontent.com/u/78061?v=4)](https://github.com/simonbuehler "simonbuehler (3 commits)")[![dsbilling](https://avatars.githubusercontent.com/u/9788214?v=4)](https://github.com/dsbilling "dsbilling (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 (1 commits)")[![gpibarra](https://avatars.githubusercontent.com/u/21188012?v=4)](https://github.com/gpibarra "gpibarra (1 commits)")[![zerossB](https://avatars.githubusercontent.com/u/8009480?v=4)](https://github.com/zerossB "zerossB (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

activityfilamentphphacktoberfestlaravelloglaravelfilament-spatie-laravel-activitylogalexjustesen

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[jacobtims/filament-logger

Activity logger for filament

1721.0k4](/packages/jacobtims-filament-logger)[tapp/filament-maillog

Filament plugin to view outgoing mail

2952.6k1](/packages/tapp-filament-maillog)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)[muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analytics, and real-time features.

17510.1k](/packages/muhammadsadeeq-laravel-activitylog-ui)

PHPackages © 2026

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