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

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

scolib/laravel-action-log
=========================

A laravel package for logging user actions into the database

v1.3.1(8y ago)29341MITPHPPHP &gt;=7.0.0

Since Apr 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ScoLib/laravel-action-log)[ Packagist](https://packagist.org/packages/scolib/laravel-action-log)[ Docs](https://github.com/ScoLib/laravel-action-log)[ RSS](/packages/scolib-laravel-action-log/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (7)Versions (8)Used By (0)

Laravel Action Log
==================

[](#laravel-action-log)

[![StyleCI](https://camo.githubusercontent.com/a76bec2ed89518937fdcdf86f8df608d3c6079a17386163c6ba8069d3562ad54/68747470733a2f2f7374796c6563692e696f2f7265706f732f38393333373134302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/89337140)[![Latest Version on Packagist](https://camo.githubusercontent.com/0381ad31dff60fe7df3eb011315df53939115ad56a8530fdc5f686c8d466d31c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f53636f4c69622f6c61726176656c2d616374696f6e2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ScoLib/laravel-action-log)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/dd36fcdd0ec0028672e30fcbd491b2ab652d6bd946152e1178d60a2b15ea8c3d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f53636f4c69622f6c61726176656c2d616374696f6e2d6c6f672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ScoLib/laravel-action-log)[![Coverage Status](https://camo.githubusercontent.com/c8ec5346fcb57f54a3ebde7a390682afd9a5738f22295cba9dd5df990a4201e7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f53636f4c69622f6c61726176656c2d616374696f6e2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ScoLib/laravel-action-log/code-structure)[![Quality Score](https://camo.githubusercontent.com/570c1238198f9711c5b1f58fa07f9105ed98aa81727f660ee4de54c6615fd663/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f53636f4c69622f6c61726176656c2d616374696f6e2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ScoLib/laravel-action-log)[![Total Downloads](https://camo.githubusercontent.com/2561476b960916d66bcb226fc4b5de820ef9c466c2f553e4ea170d4e4878d9d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f53636f4c69622f6c61726176656c2d616374696f6e2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ScoLib/laravel-action-log)

Install
-------

[](#install)

### Laravel 5.5.\*

[](#laravel-55)

```
$ composer require scolib/laravel-action-log:1.3.*
```

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

### Laravel 5.4.\*

[](#laravel-54)

```
$ composer require scolib/laravel-action-log:1.2.*
```

Add the ServiceProvider to the `providers` array in `config/app.php`

```
\Sco\ActionLog\LaravelServiceProvider::class,
```

If you want to use the facade to logging actions, add this to the `aliases` array in `config/app.php`

```
'ActionLog' => Sco\ActionLog\Facade::class,
```

Publish config file
-------------------

[](#publish-config-file)

Copy the package config to your local config with the publish command:

```
php artisan vendor:publish --provider="Sco\ActionLog\LaravelServiceProvider"
```

Default action log table name is `action_logs`, If you want to customize it, edit the `config/actionlog.php`

Now run the artisan migrate command:

```
php artisan migrate
```

Usage
-----

[](#usage)

### Method 1

[](#method-1)

Override the property `$events` in your Model

```
    protected $events = [
        'created'  => \Sco\ActionLog\Events\ModelWasCreated::class,
    ];
```

> ⚠ Note: Laravel 5.5
> Renamed `$events` to `$dispatchesEvents` ([\#17961](https://github.com/laravel/framework/pull/17961), [b6472bf](https://github.com/laravel/framework/commit/b6472bf6fec1af6e76604aaf3f7fed665440ac66), [3dbe12f](https://github.com/laravel/framework/commit/3dbe12f16f470e3bca868576d517d57876bc50af))

All available event

```
[
    'created'   => \Sco\ActionLog\Events\ModelWasCreated::class,
    'deleted'   => \Sco\ActionLog\Events\ModelWasDeleted::class,
    'restored'  => \Sco\ActionLog\Events\ModelWasRestored::class,
    'saved'     => \Sco\ActionLog\Events\ModelWasSaved::class,
    'updated'   => \Sco\ActionLog\Events\ModelWasUpdated::class,
    'creating'  => \Sco\ActionLog\Events\ModelWillCreating::class,
    'deleting'  => \Sco\ActionLog\Events\ModelWillDeleting::class,
    'restoring' => \Sco\ActionLog\Events\ModelWillRestoring::class,
    'saving'    => \Sco\ActionLog\Events\ModelWillSaving::class,
    'updating'  => \Sco\ActionLog\Events\ModelWillUpdating::class,
]
```

### Method 2

[](#method-2)

Manual logging actions

```
// use event
event(new \Sco\ActionLog\Events\ManualEvent($type, $content));

// use factory
\Sco\ActionLog\Factory::info(LogInfo $info);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [klgd](https://github.com/klgd)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~32 days

Total

7

Last Release

3214d ago

PHP version history (2 changes)v1.0.0PHP ~5.6|~7.0

v1.3.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6a8a8c087979593079b77f376d3b33bf3b0669dc9273370753772bfd88207e8?d=identicon)[klgd](/maintainers/klgd)

---

Top Contributors

[![klgd](https://avatars.githubusercontent.com/u/8554422?v=4)](https://github.com/klgd "klgd (18 commits)")

---

Tags

actionlaravellogscolibScoLiblaravel-action-log

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.0k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M265](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M323](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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