PHPackages                             dentorus/model-log-2 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dentorus/model-log-2

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dentorus/model-log-2
====================

Voyager Model Log

v1.0.1(4y ago)042MITPHP

Since Aug 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Dentorus/model-log-2)[ Packagist](https://packagist.org/packages/dentorus/model-log-2)[ RSS](/packages/dentorus-model-log-2/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

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

[](#voyager-model-log)

Install hook

```
composer require dentorus/model-log-2

```

Enable hook

```
php artisan hook:enable dentorus/model-log-2

```

Publishing config

```
php artisan vendor:publish --provider="Dentorus\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:**

```
