PHPackages                             tuntron/laravel-action-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. tuntron/laravel-action-log

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

tuntron/laravel-action-log
==========================

A laravel package of ActionLog

1.0.3(9y ago)150MITPHPPHP &gt;=5.4.0

Since Nov 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tuntron/actionLog)[ Packagist](https://packagist.org/packages/tuntron/laravel-action-log)[ RSS](/packages/tuntron-laravel-action-log/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

actionLog
=========

[](#actionlog)

Laravel 5 操作日志自动记录

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

[](#installation)

The ActionLog Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `Tuntron/actionLog` package and setting the `minimum-stability` to `dev` (required for Laravel 5) in your project's `composer.json`.

```
{
    "require": {

        "Tuntron/laravel-action-log": "dev-master"
    },

}
```

or

Require this package with composer:

```
composer require Tuntron/laravel-action-log dev-master

```

Update your packages with `composer update` or install with `composer install`.

In Windows, you'll need to include the GD2 DLL `php_gd2.dll` as an extension in php.ini.

Usage
-----

[](#usage)

To use the ActionLog Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

Find the `providers` key in `config/app.php` and register the ActionLog Service Provider.

```
    'providers' => [
        // ...
        'Tuntron\ActionLog\ActionLogServiceProvider',
    ]
```

for Laravel 5.1+

```
    'providers' => [
        // ...
        Tuntron\ActionLog\ActionLogServiceProvider::class,
    ]
```

Find the `aliases` key in `config/app.php`.

```
    'aliases' => [
        // ...
        'ActionLog' => 'Tuntron\ActionLog\Facades\ActionLogFacade',
    ]
```

for Laravel 5.1+

```
    'aliases' => [
        // ...
        'ActionLog' => Tuntron\ActionLog\Facades\ActionLogFacade::class,
    ]
```

Configuration
-------------

[](#configuration)

To use your own settings, publish config.

`$ php artisan vendor:publish`

`config/actionlog.php`

```
//填写要记录的日志的模型名称
	return [
		'\App\Users',
	];
```

Last Step
---------

[](#last-step)

run: `$ php artisan migrate`

Demo
----

[](#demo)

自动记录操作日志，数据库操作需按如下:

```
update

$users = Users::find(1);
$users->name = "myname";
$users->save();

add

$users = new Users();
$users->name = "myname";
$users->save()

delete

Users:destroy(1);
```

主动记录操作日志

```
use ActionLog

ActionLog::createActionLog($type,$content);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

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 ~0 days

Total

4

Last Release

3509d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6416166?v=4)[Michael](/maintainers/tuntron)[@tuntron](https://github.com/tuntron)

---

Tags

laravelactionlog

### Embed Badge

![Health badge](/badges/tuntron-laravel-action-log/health.svg)

```
[![Health](https://phpackages.com/badges/tuntron-laravel-action-log/health.svg)](https://phpackages.com/packages/tuntron-laravel-action-log)
```

###  Alternatives

[luoyangpeng/action-log

A laravel package of ActionLog

579.7k](/packages/luoyangpeng-action-log)[insenseanalytics/nova-server-monitor

A Laravel Nova tool for Spatie's Server Monitor library.

6551.6k](/packages/insenseanalytics-nova-server-monitor)[melihovv/laravel-log-viewer

A Laravel log viewer

1031.6k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

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