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

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

mstfkhazaal/filament-logger
===========================

Activity logger for filament

v0.6.0(3y ago)05MITPHPPHP ^8.0 | ^8.1

Since Apr 25Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (14)Versions (20)Used By (0)

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)

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)

This 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`

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.

```
