PHPackages                             kamrul-haque/laravel-model-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. kamrul-haque/laravel-model-log

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

kamrul-haque/laravel-model-log
==============================

Log model events with data by simply adding a Trait

v1.0.1(3y ago)348MITBlade

Since Dec 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Kamrul-Haque/laravel-model-log)[ Packagist](https://packagist.org/packages/kamrul-haque/laravel-model-log)[ RSS](/packages/kamrul-haque-laravel-model-log/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

laravel-model-log
=================

[](#laravel-model-log)

[![Latest Stable Version](https://camo.githubusercontent.com/62e699d7b75f8e1957a04c9b4601b252fbd8794fd42469b62473fb1ee8ad30b7/687474703a2f2f706f7365722e707567782e6f72672f6b616d72756c2d68617175652f6c61726176656c2d6d6f64656c2d6c6f672f76)](https://packagist.org/packages/kamrul-haque/laravel-model-log) [![Total Downloads](https://camo.githubusercontent.com/417fef865f8c1f11fb840207958474ec516277de4819d529d3bd5b2910aa0560/687474703a2f2f706f7365722e707567782e6f72672f6b616d72756c2d68617175652f6c61726176656c2d6d6f64656c2d6c6f672f646f776e6c6f616473)](https://packagist.org/packages/kamrul-haque/laravel-model-log) [![Latest Unstable Version](https://camo.githubusercontent.com/ee1972c744744a4cd59bacd9d01d6ef6e58a40b20ffd0f71ef8c528f60c0a6f4/687474703a2f2f706f7365722e707567782e6f72672f6b616d72756c2d68617175652f6c61726176656c2d6d6f64656c2d6c6f672f762f756e737461626c65)](https://packagist.org/packages/kamrul-haque/laravel-model-log) [![License](https://camo.githubusercontent.com/9a6214e47d98a205f4ce3119303a0c1272b1fa0e487196e6b899dc607c192738/687474703a2f2f706f7365722e707567782e6f72672f6b616d72756c2d68617175652f6c61726176656c2d6d6f64656c2d6c6f672f6c6963656e7365)](https://packagist.org/packages/kamrul-haque/laravel-model-log) [![GitHub Repo stars](https://camo.githubusercontent.com/a52a402122d9679f4eb8f48b45c41534c7a7c0d16d6a89cf231591e7c03020c9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4b616d72756c2d48617175652f6c61726176656c2d6d6f64656c2d6c6f673f636f6c6f723d253233464643313037)](https://camo.githubusercontent.com/a52a402122d9679f4eb8f48b45c41534c7a7c0d16d6a89cf231591e7c03020c9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4b616d72756c2d48617175652f6c61726176656c2d6d6f64656c2d6c6f673f636f6c6f723d253233464643313037)

Log model events with data by simply adding a Trait

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

[](#installation)

Install the package via [composer](https://getcomposer.org/):

```
composer require kamrul-haque/laravel-model-log

```

Migrate the necessary database tables:

```
php artisan migrate

```

Usage
-----

[](#usage)

- Add `KamrulHaque\LaravelModelLog\Traits\Loggable` *Trait* to the *Model* you want to log
- Access the logs by `/model-logs` *uri* added to your application by the package
- To customize the log *view*, publish package views:

```
php artisan vendor:publish --provider="KamrulHaque\LaravelModelLog\ModelLogServiceProvider" --tag="views"

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1302d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72596604?v=4)[Md. Kamrul Haque](/maintainers/Kamrul-Haque)[@Kamrul-Haque](https://github.com/Kamrul-Haque)

---

Top Contributors

[![Kamrul-Haque](https://avatars.githubusercontent.com/u/72596604?v=4)](https://github.com/Kamrul-Haque "Kamrul-Haque (8 commits)")

### Embed Badge

![Health badge](/badges/kamrul-haque-laravel-model-log/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

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

SDK for OpenTelemetry PHP.

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

PHPackages © 2026

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