PHPackages                             jacobtims/filament-logger - 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. jacobtims/filament-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

jacobtims/filament-logger
=========================

Activity logger for filament

v1.2.0(1mo ago)1721.0k↑36.3%4[1 PRs](https://github.com/Jacobtims/filament-logger/pulls)3MITPHPPHP ^8.2CI passing

Since Apr 25Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/Jacobtims/filament-logger)[ Packagist](https://packagist.org/packages/jacobtims/filament-logger)[ Docs](https://github.com/jacobtims/filament-logger)[ RSS](/packages/jacobtims-filament-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (30)Versions (39)Used By (3)

Note

This is a fork of [Z3d0X/filament-logger](https://github.com/Z3d0X/filament-logger). I am now maintaining this project and will continue providing updates and improvements.

Activity logger for filament
============================

[](#activity-logger-for-filament)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f4ba50b916f250995ba1c43e52447eaf9c4671c6195976697e046ea5501aee6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a61636f6274696d732f66696c616d656e742d6c6f676765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jacobtims/filament-logger)[![Total Downloads](https://camo.githubusercontent.com/f735a448e0f8da5bdd98b1700f9b532d9aaa0204a11ae7cb04022392d3290da2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a61636f6274696d732f66696c616d656e742d6c6f676765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jacobtims/filament-logger)

 [![logger banner](https://raw.githubusercontent.com/jacobtims/filament-logger/main/art/banner.jpeg)](https://raw.githubusercontent.com/jacobtims/filament-logger/main/art/banner.jpeg)

Configurable activity logger for filament. Powered by `spatie/laravel-activitylog`

Features
--------

[](#features)

You can choose what you want to log and how to log it.

- Log Filament Resource Events
- Log Login Event
- Log Notification Events
- Log Model Events
- Easily extendable to log custom events

Note: By default this package will log Filament Resource Events, Access(Login) Events, and Notification Events. If you want to log a model that is not a FilamentResource you will have to manually register in the config file.

Installation
------------

[](#installation)

Plugin VersionFilament Version&lt;= 0.5.x^2.110.6.x - 0.8.x3.x&gt;= 1.04.xThis package uses [spatie/laravel-activitylog](https://spatie.be/docs/laravel-activitylog), instructions for its setup can be found [here](https://spatie.be/docs/laravel-activitylog/v4/installation-and-setup)

You can install the package via composer:

```
composer require jacobtims/filament-logger
```

After that run the install command:

```
php artisan filament-logger:install
```

This will publish the config &amp; migrations from `spatie/laravel-activitylog`

Register the plugin in your PanelProvider:

```
use Jacobtims\FilamentLogger\FilamentLoggerPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentLoggerPlugin::make(),
        ]);
}
```

Authorization
-------------

[](#authorization)

To enforce policies on `ActivityResource`, after generating a policy, you would need to register `Spatie\Activitylog\Models\Activity` to use that policy in the AuthServiceProvider.

```
