PHPackages                             tectiv3/loggable - 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. tectiv3/loggable

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

tectiv3/loggable
================

:This packages allows the laravel models to have automatic logging

06PHP

Since Feb 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tectiv3/loggable)[ Packagist](https://packagist.org/packages/tectiv3/loggable)[ RSS](/packages/tectiv3-loggable/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

loggable
========

[](#loggable)

Loggable is a Laravel 5 package which helps users to keep simple log of their model CRUD operations. .

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

[](#installation)

```
$ composer require tectiv3/loggable
```

- Add the service provider to the providers array in app.php

```
tectiv3\Loggable\ServiceProvider::class

//Then do vendor:publish from the artisan command to copy the migration file and run migrate command
php artisan vendor:publish --provider="tectiv3\Loggable\ServiceProvider"
php artisan migrate
```

Usage
-----

[](#usage)

```
//use Loggable in any of your models whose CRUD logs you want to keep
use tectiv3\Loggable\Loggable;
class DemoModel extends \Eloquent {
    use Loggable;
}

//for all logs loop through \tectiv3\Loggable\Log::all() or filter it however you like

//for model specific logs you can call $model->logs to get model specific logs

//then inside the loop you can access the user with ->user property

foreach($model->logs as $log){
    echo $log->entity . ' || ' . $log->action;
    echo '';
    echo 'By :'.$log->user->name.' at '.$log->created_at;
}
```

Credits
-------

[](#credits)

- [tectiv3](https://github.com/tectiv3)
- [themightysapien](https://github.com/themightysapien)

License
-------

[](#license)

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

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![themightysapien](https://avatars.githubusercontent.com/u/732813?v=4)](https://github.com/themightysapien "themightysapien (11 commits)")[![tectiv3](https://avatars.githubusercontent.com/u/1974189?v=4)](https://github.com/tectiv3 "tectiv3 (1 commits)")

### Embed Badge

![Health badge](/badges/tectiv3-loggable/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

1938.5M263](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M317](/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)
