PHPackages                             ferdiunal/eloquent-history - 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. [Database &amp; ORM](/categories/database)
4. /
5. ferdiunal/eloquent-history

ActiveLibrary[Database &amp; ORM](/categories/database)

ferdiunal/eloquent-history
==========================

Eloquent model history tracking for Laravel

v1.0.0(3y ago)010MITPHPPHP ^8.1|^8.2

Since Apr 2Pushed 3y agoCompare

[ Source](https://github.com/ferdiunal/eloquent-history)[ Packagist](https://packagist.org/packages/ferdiunal/eloquent-history)[ Docs](https://github.com/ferdiunal/eloquent-history)[ RSS](/packages/ferdiunal-eloquent-history/feed)WikiDiscussions main Synced 3d ago

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

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

[](#installation)

### Composer

[](#composer)

Laravel 9.x and above

```
composer require ferdiunal/history
```

*config/app.php*

```
'providers' => [
    ...
    Ferdiunal\History\HistoryServiceProvider::class,
];
'aliases' => [
    ...
    'App\History' => Ferdiunal\History\History::class,
];
```

### Migration

[](#migration)

```
php artisan vendor:publish --provider="Ferdiunal\History\HistoryServiceProvider" --tag=migrations
```

### Config

[](#config)

```
php artisan vendor:publish --provider="Ferdiunal\History\HistoryServiceProvider" --tag=config
```

Localization
------------

[](#localization)

```
php artisan vendor:publish --provider="Ferdiunal\History\HistoryServiceProvider" --tag=translations
```

Usage
-----

[](#usage)

Add `HasOperations` trait to user model.

```
