PHPackages                             cavespoidy/laralogger - 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. cavespoidy/laralogger

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

cavespoidy/laralogger
=====================

laravel model activity logger package

0.5.9-beta.3(4y ago)04MITPHPPHP ^7.3|^8.0

Since Aug 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/prithwijoysaha/LaraLogger)[ Packagist](https://packagist.org/packages/cavespoidy/laralogger)[ Fund](https://github.com/prithwijoysaha)[ GitHub Sponsors](https://github.com/prithwijoysaha)[ RSS](/packages/cavespoidy-laralogger/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

LaraLogger - Track Users' Activity
==================================

[](#laralogger---track-users-activity)

[![Issues](https://camo.githubusercontent.com/ccba77b401f098b1b81fc022bacb1f31016a7a4dd023320668f6e2434bf6ea27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f707269746877696a6f79736168612f4c6172614c6f676765723f7374796c653d666f722d7468652d6261646765)](https://github.com/prithwijoysaha/LaraLogger/issues) [![Stars](https://camo.githubusercontent.com/3bcb3812d3bcf2f1b6d4e03b6664cedb0a43dbb1179456903db6c984dec8c6f8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f707269746877696a6f79736168612f4c6172614c6f676765723f7374796c653d666f722d7468652d6261646765)](https://github.com/prithwijoysaha/LaraLogger/issues)

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

[](#installation)

You can install the package via composer:

```
composer require cavespoidy/laralogger
```

Clone Package
-------------

[](#clone-package)

```
git clone https://github.com/prithwijoysaha/LaraLogger LaraLogger
```

Usage
-----

[](#usage)

##### Step 1: RUN Command: ` php artisan migrate`

[](#step-1-run-command--php-artisan-migrate)

##### Step 2: Use It On Any Model: ` use LaraLogger;`

[](#step-2-use-it-on-any-model--use-laralogger)

##### Step 3: Use It On Any Model: ` use cavespoidy\laralogger\LaraLogger;`

[](#step-3-use-it-on-any-model--use-cavespoidylaraloggerlaralogger)

Example (Just Like) : Model\\User.php
-------------------------------------

[](#example-just-like--modeluserphp)

```
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use cavespoidy\LaraLogger\LaraLogger;

class User extends Authenticatable
{
    use LaraLogger;
}
```

Customization:
--------------

[](#customization)

By default its uses the Auth()-&gt;id for userId to customize it just publish it. After publishing you will find a file named laralogger.php at config directory.

Thing To Keep In Mind:
----------------------

[](#thing-to-keep-in-mind)

1. LaraLogger only works with DML queries of Laravel Eloquent Example:

```
User::find(1)->delete();        // For this LaraLogger is made for.
User::where('id',1)->delete();  // For this LaraLogger don't work.
```

2. LaraLogger will average execution time is 10ms approx.
3. LaraLogger wont save the geo-location details and isp-details for localhost/127.0.0.1
4. It can throw exceptions only in local environment. And save exceptions at log file for production environment for smoother experience.
5. LaraLogger by default use two open source APIs: =&gt; [www.geoplugin.net](http://www.geoplugin.net)=&gt; [www.ip-api.com](http://www.ip-api.com)Thanks to geoplugin.net and ip-api.com

Testing
-------

[](#testing)

```
composer require cavespoidy/laralogger/Test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Every ~3 days

Total

3

Last Release

1772d ago

PHP version history (2 changes)0.5.9-beta.1PHP ^7.4

0.5.9-beta.2PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ec386d9761ddff96e414cd923f5657c94ea5714ffd9749b88e795ed16c94017?d=identicon)[PrithwijoySaha](/maintainers/PrithwijoySaha)

---

Top Contributors

[![prithwijoysaha](https://avatars.githubusercontent.com/u/74137886?v=4)](https://github.com/prithwijoysaha "prithwijoysaha (35 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/cavespoidy-laralogger/health.svg)

```
[![Health](https://phpackages.com/badges/cavespoidy-laralogger/health.svg)](https://phpackages.com/packages/cavespoidy-laralogger)
```

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

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

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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