PHPackages                             kchinkesh/laravel-model-observer - 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. [Database &amp; ORM](/categories/database)
4. /
5. kchinkesh/laravel-model-observer

ActiveLibrary[Database &amp; ORM](/categories/database)

kchinkesh/laravel-model-observer
================================

A Simple Laravel Package to observe,log and anlaize any changes to Eloquent Model using trait.

v1.0.1(5y ago)2321MITBlade

Since Apr 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kchinkesh/Laravel-Model-Observer)[ Packagist](https://packagist.org/packages/kchinkesh/laravel-model-observer)[ RSS](/packages/kchinkesh-laravel-model-observer/feed)WikiDiscussions master Synced 3w ago

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

Laravel Model Observer
======================

[](#laravel-model-observer)

A Laravel Package to Log and analize all actions performed on a Eloquent Model.

[![Laravel Model Logger](https://github.com/Kchinkesh/Laravel-Model-Observer/raw/main/logger.png?raw=true)](https://github.com/Kchinkesh/Laravel-Model-Observer/blob/main/logger.png?raw=true)

### Requirements

[](#requirements)

- Laravel 7+
- laravel/ui or laravel/breeze or jetstream for authentication purpose

### Installation Instructions

[](#installation-instructions)

1. From Your Project's root Terminal run: ```
    composer require kchinkesh/laravel-model-observer
    ```
2. Register the Package
    - Laravel 5.5 and up Uses package auto discovery feature, no need to edit the config/app.php file.
3. Run the migration to add the table to record the activities to: ```
    php artisan migrate
    ```

    Note: If you want to specify a different table or connection make sure you update your .env file with the needed configuration variables.
4. Optionally publish the packages views, config file, assets, and language files by running the following from your projects root folder: ```
    php artisan vendor:publish --tag=LaravelModelObserver
    ```

### Usage

[](#usage)

#### Trait Usage

[](#trait-usage)

Events can be recorded directly by using the trait inside your Model. To use the Trait:

1. Include the call in the head of your model class file: ```
    use kchinkesh\LaravelModelObserver\App\Traits\ModelsObserver;
    ```
2. Include the trait call in the opening of your model class: ```
    use ModelsObserver;
    ```

### Routes

[](#routes)

Model Activity Dashboard Routes

- /actions
- /actions/view/{id}

Screenshots
-----------

[](#screenshots)

##### New Post

[](#new-post)

[![New Post](https://github.com/kchinkesh/Laravel-Model-Observer/raw/main/create.png)](https://github.com/kchinkesh/Laravel-Model-Observer/blob/main/create.png)

##### Posts

[](#posts)

[![Posts](https://github.com/kchinkesh/Laravel-Model-Observer/raw/main/posts.png)](https://github.com/kchinkesh/Laravel-Model-Observer/blob/main/posts.png)

##### Edit Post

[](#edit-post)

[![Edit Post](https://github.com/kchinkesh/Laravel-Model-Observer/raw/main/edit.png)](https://github.com/kchinkesh/Laravel-Model-Observer/blob/main/edit.png)

##### Model Logs

[](#model-logs)

[![Logs](https://github.com/kchinkesh/Laravel-Model-Observer/raw/main/logs.png)](https://github.com/kchinkesh/Laravel-Model-Observer/blob/main/logs.png)

##### New Post Created Log

[](#new-post-created-log)

[![New](https://github.com/kchinkesh/Laravel-Model-Observer/raw/main/deatil_create.png)](https://github.com/kchinkesh/Laravel-Model-Observer/blob/main/deatil_create.png)

##### Post attributes change log

[](#post-attributes-change-log)

[![Change](https://github.com/kchinkesh/Laravel-Model-Observer/raw/main/detail_change.png)](https://github.com/kchinkesh/Laravel-Model-Observer/blob/main/detail_change.png)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

1909d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

changelogloggermodelobservertrait

### Embed Badge

![Health badge](/badges/kchinkesh-laravel-model-observer/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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