PHPackages                             afea/filament-activity-log - 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. afea/filament-activity-log

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

afea/filament-activity-log
==========================

Activity log module for the Afea Filament CMS package ecosystem: wraps rmsramos/activitylog with opinionated config + idempotent install command.

v0.1.0(1mo ago)014↑445.5%1MITPHPPHP ^8.4

Since Apr 21Pushed 1mo agoCompare

[ Source](https://github.com/AfeaSoftware/filament-activity-log)[ Packagist](https://packagist.org/packages/afea/filament-activity-log)[ RSS](/packages/afea-filament-activity-log/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (11)Versions (2)Used By (1)

afea/filament-activity-log
==========================

[](#afeafilament-activity-log)

Activity log module for the Afea Filament CMS package ecosystem.

Thin opinionated wrapper around the excellent [`rmsramos/activitylog`](https://filamentphp.com/plugins/rmsramos-activitylog) plugin (itself built on top of `spatie/laravel-activitylog`).

Ships:

- `ActivityLogPlugin` — wraps rmsramos' plugin, applies our nav group / sort defaults so the page lands alongside Redirects, Backups, and Settings
- `afea:install:activity-log` — idempotent installer: publishes config + spatie activity log migrations, runs migrate, patches the panel provider

Installation
------------

[](#installation)

```
composer require afea/filament-activity-log
php artisan afea:install:activity-log
```

That single command:

1. Publishes `config/afea-activity-log.php`.
2. Publishes spatie/laravel-activitylog's migration (skipped if `activity_log` already exists).
3. Runs `php artisan migrate`.
4. Appends `->plugin(\Afea\Cms\ActivityLog\Filament\ActivityLogPlugin::make())` to your panel provider.

Re-running is safe — idempotent at every step.

Three common scenarios
----------------------

[](#three-common-scenarios)

### 1. Log a specific model

[](#1-log-a-specific-model)

```
use Spatie\Activitylog\Traits\LogsActivity;
use Spatie\Activitylog\LogOptions;

class BlogPost extends Model
{
    use LogsActivity;

    public function getActivitylogOptions(): LogOptions
    {
        return LogOptions::defaults()
            ->logFillable()
            ->logOnlyDirty()
            ->dontSubmitEmptyLogs();
    }
}
```

### 2. Change the navigation placement

[](#2-change-the-navigation-placement)

```
// config/afea-activity-log.php
'filament' => [
    'navigation_group' => 'Audit',
    'navigation_sort' => 10,
    'navigation_label' => 'Change history',
],
```

### 3. Prune old entries

[](#3-prune-old-entries)

Schedule spatie/activity-log's cleanup command to keep the table lean:

```
// bootstrap/app.php
->withSchedule(function (\Illuminate\Console\Scheduling\Schedule $schedule) {
    $schedule->command('activitylog:clean')->weekly();
})
```

Authorization
-------------

[](#authorization)

By default the resource is visible to every authenticated user. Lock it down with `->authorize(fn () => auth()->user()?->hasRole('super_admin'))` on the rmsramos plugin — or let `bezhansalleh/filament-shield` generate a policy for `ActivityResource`.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/090664afed2a3f014aa9cc4d2225925052fbc30e1995ebb9898272dc77a5b45f?d=identicon)[ahmetozrahat](/maintainers/ahmetozrahat)

---

Top Contributors

[![ahmetozrahat](https://avatars.githubusercontent.com/u/12434217?v=4)](https://github.com/ahmetozrahat "ahmetozrahat (2 commits)")

---

Tags

laravelcmsAuditfilamentactivitylogafea

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/afea-filament-activity-log/health.svg)

```
[![Health](https://phpackages.com/badges/afea-filament-activity-log/health.svg)](https://phpackages.com/packages/afea-filament-activity-log)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[spatie/laravel-health

Monitor the health of a Laravel application

88011.3M149](/packages/spatie-laravel-health)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analytics, and real-time features.

17614.3k](/packages/muhammadsadeeq-laravel-activitylog-ui)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[mradder/filament-logger

Audit logging, activity tracking, exports, alerts, and dashboards for Filament admin panels.

2210.5k](/packages/mradder-filament-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
