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

ActiveLibrary

abdiwaahid/filament-logger
==========================

Activity logger for filament

v1.2.0(2mo ago)0360↓33.3%[4 PRs](https://github.com/abdiwaahid/filament-logger/pulls)MITPHPPHP ^8.1CI passing

Since Aug 25Pushed 1mo agoCompare

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

READMEChangelog (2)Dependencies (13)Versions (7)Used By (0)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/96830603cf06595e1a8e681f7c72a6c2b5f9bae98fc6ef5e849b327de75b7058/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616264697761616869642f66696c616d656e742d6c6f676765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/abdiwaahid/filament-logger)[![Total Downloads](https://camo.githubusercontent.com/798caedf040cc1d2d7ab1823b4112c290dc79eb24c0c63a327e4b8370947564b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616264697761616869642f66696c616d656e742d6c6f676765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/abdiwaahid/filament-logger)

> **Note**: This is a maintained fork of [Z3d0X/filament-logger](https://github.com/Z3d0X/filament-logger), starting from version `1.0`. This fork aims to continue development and maintenance of the original package.

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 Version1.x4.x, 5.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 abdiwaahid/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.

```
