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

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

misakstvanu/laravel-model-log
=============================

A Laravel package for logging model changes

v1.0.5(2mo ago)0280↓88.6%MITPHPPHP &gt;=8.1CI passing

Since Dec 27Pushed 2mo agoCompare

[ Source](https://github.com/misakstvanu/laravel-model-log)[ Packagist](https://packagist.org/packages/misakstvanu/laravel-model-log)[ RSS](/packages/misakstvanu-laravel-model-log/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (6)Versions (6)Used By (0)

Laravel Model Log
=================

[](#laravel-model-log)

A Laravel package that automatically logs all changes to Eloquent models for audit trails.

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

[](#installation)

Install the package via Composer:

```
composer require misakstvanu/laravel-model-log
```

Publish the migration and config files:

```
php artisan vendor:publish --provider="Misakstvanu\ModelLog\ModelLogServiceProvider" --tag=model-log-migrations
php artisan vendor:publish --provider="Misakstvanu\ModelLog\ModelLogServiceProvider" --tag=model-log-config
```

Run the migration:

```
php artisan migrate
```

Usage
-----

[](#usage)

Add the `Loggable` trait to any model you want to log:

```
