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

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

4dsistemi/filament-logger
=========================

Activity logger for filament

v1.0.2(7mo ago)06MITPHPPHP ^8.2

Since Oct 7Pushed 7mo agoCompare

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

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

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

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

 [![logger banner](https://raw.githubusercontent.com/4dsistemi/filament-logger/main/art/banner.jpeg)](https://raw.githubusercontent.com/4dsistemi/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&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 4dsistemi/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.

```
