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

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

z3d0x/filament-logger
=====================

Activity logger for filament

v0.8.0(1y ago)389431.3k↓14.1%77[5 issues](https://github.com/Z3d0X/filament-logger/issues)[6 PRs](https://github.com/Z3d0X/filament-logger/pulls)7MITPHPPHP ^8.1CI passing

Since Apr 25Pushed 2mo ago4 watchersCompare

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

READMEChangelog (10)Dependencies (14)Versions (38)Used By (7)

Warning

This package is no longer maintained.
If you’re interested in taking over maintenance, feel free to fork the repository.

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/9dda0ef9ee140ca9ac45d956335597a02eace02d23c890787a262a91b7317080/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a336430782f66696c616d656e742d6c6f676765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/z3d0x/filament-logger)[![Total Downloads](https://camo.githubusercontent.com/c628934339125cab02b80379105fd3d5ff15d0774d44b4188b4a992df6b6286e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a336430782f66696c616d656e742d6c6f676765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/z3d0x/filament-logger)

 [![logger banner](https://raw.githubusercontent.com/z3d0x/filament-logger/main/art/banner.jpeg)](https://raw.githubusercontent.com/z3d0x/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.11&gt;= 0.6.03.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 z3d0x/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.

```
