PHPackages                             webqamdev/activity-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. webqamdev/activity-logger

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

webqamdev/activity-logger
=========================

Log every model creation, edition and deletion.

4.0.4(4mo ago)236.9k↓18.3%[1 issues](https://github.com/webqamdev/activity-logger-for-laravel/issues)PHPPHP ^8.3

Since Jul 10Pushed 4mo agoCompare

[ Source](https://github.com/webqamdev/activity-logger-for-laravel)[ Packagist](https://packagist.org/packages/webqamdev/activity-logger)[ RSS](/packages/webqamdev-activity-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (20)Used By (0)

Log activity inside your Laravel app
====================================

[](#log-activity-inside-your-laravel-app)

The `webqamdev/activity-logger` package automatically log model changes from users into database and log files.

Dependencies
------------

[](#dependencies)

This package use [spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog) to store logs in database. Feel free to configure it if needed or just follow [Installation](#installation) instructions.

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

[](#installation)

You can install the package via composer:

```
composer require webqamdev/activity-logger
```

The package will automatically register itself.

Configure [spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog/blob/master/README.md#installation). By default, run those commands :

```
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"
php artisan migrate
```

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="Webqamdev\ActivityLogger\ActivityLoggerServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

### Model Configuration &amp; Detailed Logs

[](#model-configuration--detailed-logs)

To enable detailed logging and ensure the logs follow the standard Spatie format (recording changes with `old` and `attributes` values), your model must use the `Spatie\Activitylog\Traits\LogsActivity` trait and implement the `getActivitylogOptions` method.

This is **necessary** to achieve the following structure in your logs (showing what changed):

```
[
   'old' => [
        'name' => 'original name',
        'text' => 'Lorum',
    ],
    'attributes' => [
        'name' => 'updated name',
        'text' => 'Lorum',
    ],
]
```

Example:

```
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
use Spatie\Activitylog\LogOptions;

class User extends Model
{
    use LogsActivity;

    /**
     * Configure the activity logging rules.
     */
    public function getActivitylogOptions(): LogOptions
    {
        return LogOptions::defaults()
            ->logAll()       // Log all attributes...
            ->logOnlyDirty(); // ...but only store changes
    }
}
```

### Globally hide a property

[](#globally-hide-a-property)

Publish config file. Then add entries to `properties_hidden` array.

### Hide a Model property

[](#hide-a-model-property)

Create your model normally, then define hidden properties.

```
class User extends Model {

    /**
     * The attributes that shouldn't be logged in activity logger.
     *
     * @var array
     */
    public $logAttributesToIgnore = [
        'password',
        'phone',
    ];

     ...
}
```

### Disable logs into database

[](#disable-logs-into-database)

Add `ACTIVITY_LOGGER_TO_DATABASE=false` to your `.env` file will prevent logger from writing into database.

### Change files permission

[](#change-files-permission)

If not already done, publish config file:

```
php artisan vendor:publish --provider="Webqamdev\ActivityLogger\ActivityLoggerServiceProvider" --tag="config"
```

Add `channel.permission` to your `config/activitylogger.php` file like this exemple:

```
'channel' => [
    'path'       => storage_path('logs/activity.log'),
    'level'      => 'debug',
    'days'       => 14,
    'permission' => 0644, // Default value, equivalent to bash's rw-r--r--
],
```

Upgrading
---------

[](#upgrading)

Please see [UPGRADING](UPGRADING.md) for details.

About
-----

[](#about)

This package using Laravel 5.8 is a plugin for auto-logging activities.

Gitlab repository : [Activity logger for Laravel](https://gitlab.webqam.fr/webqam/laravel-modules/activity-logger-for-laravel)Github repository : [Activity logger for Laravel](https://github.com/webqamdev/activity-logger-for-laravel)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance66

Regular maintenance activity

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 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

Every ~148 days

Recently: every ~0 days

Total

17

Last Release

129d ago

Major Versions

1.0.5 → 2.0.02022-05-17

2.1.1 → 3.0.02025-05-23

3.0.2 → 4.0.02026-01-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/4484cd4f09fdc42d008612285fffea1db421497e2d49f5f0d4e6c4db6578e933?d=identicon)[thomascombe](/maintainers/thomascombe)

![](https://www.gravatar.com/avatar/17cfe3bfcc83e1ca7c81a641f0e6dcb0b5b8e72caf54430ff980634a135bd782?d=identicon)[webqamdeveloppement](/maintainers/webqamdeveloppement)

---

Top Contributors

[![rdesorme](https://avatars.githubusercontent.com/u/31688687?v=4)](https://github.com/rdesorme "rdesorme (31 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/webqamdev-activity-logger/health.svg)

```
[![Health](https://phpackages.com/badges/webqamdev-activity-logger/health.svg)](https://phpackages.com/packages/webqamdev-activity-logger)
```

###  Alternatives

[rmsramos/activitylog

This is my package activitylog

309346.5k2](/packages/rmsramos-activitylog)[pxlrbt/filament-activity-log

Spatie's Laravel Activity Log integrated into Filament

223546.2k9](/packages/pxlrbt-filament-activity-log)[bolechen/nova-activitylog

A tool to activity logger to monitor the users of your Laravel Nova.

99683.9k4](/packages/bolechen-nova-activitylog)[muhammadsadeeq/laravel-activitylog-ui

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

17510.1k](/packages/muhammadsadeeq-laravel-activitylog-ui)[noxoua/filament-activity-log

A Laravel package that simplifies activity logging in the Filament admin panel, with support for logging create, update, delete, and restore actions. It integrates with the 'spatie/laravel-activitylog' package and includes a modernized activity log viewing page.

7151.5k](/packages/noxoua-filament-activity-log)[jacobtims/filament-logger

Activity logger for filament

1721.0k4](/packages/jacobtims-filament-logger)

PHPackages © 2026

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