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. swisnl/filament-activitylog

ActiveLibrary

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

Integrates spatie/laravel-activitylog with Filament

1.0.1(11mo ago)153.6k↓40%4[1 PRs](https://github.com/swisnl/filament-activitylog/pulls)MITPHPPHP ^8.1CI passing

Since Apr 5Pushed 1mo 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 1mo ago

READMEChangelog (2)Dependencies (13)Versions (5)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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUzNjQwMjEsIm5iZiI6MTc3NTM2MzcyMSwicGF0aCI6Ii80MzQzOTcvNDMwOTI3MDI4LWI3NTc4MThhLTRkNTctNGJhYS04NWIyLWFiMGNiYzZhMTE0NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNVQwNDM1MjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZjlmOTI2MTM0ZDhkMTFlOTQ2NGMzN2M3YzBkMmViNmE5ZmY1NjY2ZmE0YThkM2MyOWQ1MTNmNzgxNDYyMTk2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.zMVkXuV02KbrBIxQl34O0QuNPUz_rYb2anrNGopWMQE)](https://private-user-images.githubusercontent.com/434397/430927028-b757818a-4d57-4baa-85b2-ab0cbc6a1144.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUzNjQwMjEsIm5iZiI6MTc3NTM2MzcyMSwicGF0aCI6Ii80MzQzOTcvNDMwOTI3MDI4LWI3NTc4MThhLTRkNTctNGJhYS04NWIyLWFiMGNiYzZhMTE0NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNVQwNDM1MjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZjlmOTI2MTM0ZDhkMTFlOTQ2NGMzN2M3YzBkMmViNmE5ZmY1NjY2ZmE0YThkM2MyOWQ1MTNmNzgxNDYyMTk2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.zMVkXuV02KbrBIxQl34O0QuNPUz_rYb2anrNGopWMQE)

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 two actions, one for tables, and one for pages. 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\Tables\Actions\ActivitylogAction` to the actions in the resource table.

```
