New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rukhsar/modelhistory

Provides tracking of Laravel Models for creating, updating and deleting events
11

Larablocks Analysis

rukhsar/modelhistory works with Laravel 5 (latest release v1.0, Nov 25, 2016), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Nov 25, 2016)
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Nov 25, 2016.
  • No releases in the last 12 months.
  • First released: Nov 25, 2016.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require rukhsar/modelhistory
Latest Version:v1.0
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Nov 25, 2016
Links: GitHub  ·  Packagist
Maintainer: Rukhsar

Laravel Eloquent Model History

Provides tracking of Laravel Models for creating, updating and deleting events. When a model which use ModelHistory trait call created/updated/deleted, an entry is written to the database with which user updated the model and some information about model changes.

Installation

Run the follwoing command

composer require rukhsar/modelhistory

Next, add the service provider in your array in config/app.php :


'providers' => [
    ...
            Rukhsar\ModelHistoryServiceProvider::class,
    ...
],

Publish the database migration

php artisan vendor:publish --provider="Rukhsar\ModelHistoryServiceProvider"

and run

php artisan migration

This will setup a model_history table in your database.

Use it

In you model, just add

use Rukhsar\Traits\ModelHistory;

and within you class defination use it like below

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Rukhsar\Traits\ModelHistory;

class Post extends Model
{
    use ModelHistory;


}

Get the history of a particular model

For example for abouve model you can get the history by using

$post->history;

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
v1.0 >=5.4.0 >=5.2 MIT