PHPackages                             dekate/model-logger - 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. dekate/model-logger

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

dekate/model-logger
===================

Table changes logger

0.1.4(1y ago)080MITPHPPHP ^8.0.2

Since Dec 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dekate/model-logger)[ Packagist](https://packagist.org/packages/dekate/model-logger)[ RSS](/packages/dekate-model-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Model Logger
============

[](#model-logger)

Tracking any changes to model into its own table.

Table Of Contents
-----------------

[](#table-of-contents)

- [Model Logger](#model-logger)
    - [Table Of Contents](#table-of-contents)
    - [Installation](#installation)
    - [Usage](#usage)
    - [Gotchas](#gotchas)
        - [Relationship](#relationship)
        - [User Id](#user-id)
        - [What we cannot track](#what-we-cannot-track)

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

[](#installation)

install the package

```
composer require dekate/model-logger
```

publish config and migration

```
php artisan vendor:publish --tag=model-logger
```

Usage
-----

[](#usage)

use `Dekate\ModelLogger\LogModel` Trait into your model

ex.

```
