PHPackages                             ianbarnes/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. ianbarnes/model-log

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

ianbarnes/model-log
===================

Voyager Model Log

v1.0.3(5y ago)0334MITPHP

Since Nov 30Pushed 5y agoCompare

[ Source](https://github.com/IanBarnesZa/model-log)[ Packagist](https://packagist.org/packages/ianbarnes/model-log)[ RSS](/packages/ianbarnes-model-log/feed)WikiDiscussions master Synced today

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

Voyager Model Log
=================

[](#voyager-model-log)

Install hook

```
php artisan hook:install model-log

```

Enable hook

```
php artisan hook:enable model-log

```

Publishing config

```
php artisan vendor:publish --provider="Jahondust\ModelLog\ModelLogServiceProvider"

```

#### How to use Model logging

[](#how-to-use-model-logging)

Voyager Model Log is used to observe any changes in the model via writing it in the "model-log" table in your database.You can use it, simply adding "use ModelLogging;" in your model.

**Example:**

```
