New

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

dkvhin/laravel-model-histories

Laravel plugin primarily use to create timeline or history entries for models.
1,095
Install
composer require dkvhin/laravel-model-histories
Latest Version:v13.0.0
PHP:^8.2
Laravel:11 · 12 · 13
License:MIT
Last Updated:Mar 19, 2026
Links: GitHub  ·  Packagist
Maintainer: dkvhin

Install

composer require dkvhin/laravel-model-histories

Publish Configs

php artisan vendor:publish --provider="Dkvhin\LaravelModelHistories\LaravelModelHistoriesServiceProvider" --tag="config"
php artisan vendor:publish --provider="Dkvhin\LaravelModelHistories\LaravelModelHistoriesServiceProvider" --tag="migrations"

Usage

Add interface and Trait to Your Model


use Dkvhin\LaravelModelHistories\HasHistories;
use Dkvhin\LaravelModelHistories\HasHistoriesTrait;

class User extends Model implements HasHistories
{
    use HasHistoriesTrait;

    /**
     * Exclude from history
     * @var array<string>
     */
    public array $excludeFromHistory = [
        'password'
    ];
}

Related Packages

doctrine/dbal

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

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

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

429,221,767 607
nunomaduro/collision

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

403,217,078 4,664

Version History

Version Released PHP Laravel License
v13.0.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v12.0.0 ^8.2 ^11.0|^12.0 MIT
v11.0.3 ^8.2 ^11.0 MIT
v11.0.2 ^8.2 ^11.0 MIT
v11.0.1 ^8.2 ^11.0 MIT