PHPackages                             swisnl/filament-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. swisnl/filament-activitylog

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

swisnl/filament-activitylog
===========================

Integrates spatie/laravel-activitylog with Filament

3.0.0(2mo ago)164.5k↓61%4MITPHPPHP ^8.3CI passing

Since Apr 5Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/swisnl/filament-activitylog)[ Packagist](https://packagist.org/packages/swisnl/filament-activitylog)[ Docs](https://github.com/swisnl/filament-activitylog)[ GitHub Sponsors](https://github.com/swisnl)[ RSS](/packages/swisnl-filament-activitylog/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)Dependencies (26)Versions (11)Used By (0)

Filament Activity Log
=====================

[](#filament-activity-log)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1413d3ad2ed3d77f9b8868c04b85637f317a02dc6914a08dbd763aaf8751de9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737769736e6c2f66696c616d656e742d61637469766974796c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/filament-activitylog)[![Software License](https://camo.githubusercontent.com/7c322f007afde999a7c4fd653eceaa27d05e3e57d216f139f50cd97b187d1b85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f737769736e6c2f66696c616d656e742d61637469766974796c6f672e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Buy us a tree](https://camo.githubusercontent.com/cec0a9b35a1c3235bdbe0d13ea8fbd866a23e30280ad6ca27078c1fd4ac1b709/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://plant.treeware.earth/swisnl/filament-activitylog)[![Made by SWIS](https://camo.githubusercontent.com/ef6bdd6ab8d4f47bceb74dcf558b0915c6b419cbba320096324af0518e43091d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2546302539462539412538302d6d6164652532306279253230535749532d2532333037333741392e7376673f7374796c653d666c61742d737175617265)](https://www.swis.nl)

This package provides an interface to show activity log entries (from [spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog)) in a Filament application. The interface is exposed using actions. The actions show a modal with the activity log entries for the record. The package also provides a way to add comments as activity log entries.

[![Screenshot of Filament Demo Categories pages with Activity Log overlay modal](https://private-user-images.githubusercontent.com/434397/430927028-b757818a-4d57-4baa-85b2-ab0cbc6a1144.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMwMDQ1MzAsIm5iZiI6MTc4MzAwNDIzMCwicGF0aCI6Ii80MzQzOTcvNDMwOTI3MDI4LWI3NTc4MThhLTRkNTctNGJhYS04NWIyLWFiMGNiYzZhMTE0NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMlQxNDU3MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNzU5ZGUzYzQ5ZGNjMzU0MTNmYWExNzdjZGE1MTJhYWZmYTk0YzhiYmRlYWQ3NjgxZDdhZWIzNDI0NzQ2OWY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.0iyhi0Bm1gC6AIYSLnidlIeTJBCJFnDvcUYAMxUXzO8)](https://private-user-images.githubusercontent.com/434397/430927028-b757818a-4d57-4baa-85b2-ab0cbc6a1144.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMwMDQ1MzAsIm5iZiI6MTc4MzAwNDIzMCwicGF0aCI6Ii80MzQzOTcvNDMwOTI3MDI4LWI3NTc4MThhLTRkNTctNGJhYS04NWIyLWFiMGNiYzZhMTE0NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMlQxNDU3MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNzU5ZGUzYzQ5ZGNjMzU0MTNmYWExNzdjZGE1MTJhYWZmYTk0YzhiYmRlYWQ3NjgxZDdhZWIzNDI0NzQ2OWY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.0iyhi0Bm1gC6AIYSLnidlIeTJBCJFnDvcUYAMxUXzO8)

Version Compatibility
---------------------

[](#version-compatibility)

Plugin VersionFilament VersionPHP Version3.x4.x or 5.x8.3+2.x4.x8.2+1.x3.x8.2+Installation
------------

[](#installation)

You can install the package via composer:

```
composer require swisnl/filament-activitylog
```

If you didn't install the [spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog) package already, this will also install that package. Follow the [installation instructions of spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog?tab=readme-ov-file#installation).

Usage
-----

[](#usage)

The package provides an action. Add the action for the resources that have activity. The actions show a modal with the activity log entries for the record and a form to add a comment.

### Tables

[](#tables)

For tables add the `Swis\Filament\Activitylog\Actions\ActivitylogAction` to the actions in the resource table.

```
