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

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

unknow-sk/filament-logger
=========================

Activity logger for filament

1.0.0(10mo ago)35.3k↓61.5%3MITPHPPHP ^8.2

Since Aug 18Pushed 7mo agoCompare

[ Source](https://github.com/unknow-sk/filament-logger)[ Packagist](https://packagist.org/packages/unknow-sk/filament-logger)[ Docs](https://github.com/unknow-sk/filament-logger)[ RSS](/packages/unknow-sk-filament-logger/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (15)Versions (2)Used By (3)

🚫 NO LONGER MAINTAINED
======================

[](#-no-longer-maintained)

```
╔═══════════════════════════════════════════════════════════╗
║  ⚠️  THIS PACKAGE IS INACTIVE AND NO LONGER SUPPORTED  ⚠️ ║
║                                                           ║
║  Please migrate to the new package:                      ║
║  👉 https://github.com/Jacobtims/filament-logger         ║
╚═══════════════════════════════════════════════════════════╝

```

**What You Won't Get:**

- ❌ New features
- ❌ Bug fixes
- ❌ Security updates
- ❌ Updates for new Laravel/Filament versions

**Migrate immediately to:** [Jacobtims/filament-logger](https://github.com/Jacobtims/filament-logger)

> This package fork of [z3d0x/filament-logger](https://github.com/z3d0x/filament-logger) but with support for Filament v4+.

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/9987d98da8729d1466c1f5d0719c37b0eb1d39de772ad12cf27fb5ea314b7649/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756e6b6e6f772d736b2f66696c616d656e742d6c6f676765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/unknow-sk/filament-logger)[![Total Downloads](https://camo.githubusercontent.com/a81f582f69292751285387403935c8857717d1a8bcc57b05f2089a473e618eda/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756e6b6e6f772d736b2f66696c616d656e742d6c6f676765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/unknow-sk/filament-logger)

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.11&gt;= 0.6.03.x&gt;= 1.0.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 unknow-sk/filament-logger
```

After that run the install command:

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

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

For Filament v3, you need to register a resource in PanelProvider

```
public function panel(Panel $panel): Panel
{
    return $panel
        ->resources([
            config('filament-logger.activity_resource')
        ]);
}
```

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.

```
