PHPackages                             mahmoudarafat/edit-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. [Admin Panels](/categories/admin)
4. /
5. mahmoudarafat/edit-history

ActivePackage[Admin Panels](/categories/admin)

mahmoudarafat/edit-history
==========================

editable and historiable data for crud operations to save request consumptions and bandwidth, also for make history for all changes done in the request.

1.4(3y ago)030MITPHPPHP &gt;= 5.3.0

Since May 27Pushed 3y ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Editable
========

[](#editable)

editable and historiable data for crud operations to save request consumptions and bandwidth, also for make history for all changes done in the request.

Features
--------

[](#features)

- Save all Edits done on your DB table with one model configuration
- this makes a DB table called ( edit\_history ) with morphMany for any of your chosen models you need to track its edit history.

Upcomoing Features
------------------

[](#upcomoing-features)

- View history done in all of your Models ( You don't need to code this, I'll do it for you ).

Author
------

[](#author)

- [Mahmoud Arafat](https://mahmoud-arafat.com)( [@mahmoudarafat](https://github.com/mahmoudarafat) )

---

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

[](#installation)

First, we run

```
  composer require mahmoudarafat/edit-history

```

Then, we should add the package to \[ config/app.php \]

```
  'providers' => [
    ....

      \MahmoudArafat\EditHistory\EditHistoryServiceProvider::class,

    ....
  ],

```

Now, we can publish the package

```
  php artisan vendor:publish

```

##### \[Choose\]

[](#choose)

### MahmoudArafat\\EditHistory\\EditHistoryServiceProvider

[](#mahmoudarafatedithistoryedithistoryserviceprovider)

And finally, we do this Artisan command to add the \[ edit\_history \] table to your DB.

```
 php artisan edithistory:table

```

That's it, Enjoy!

---

Usage/Examples
--------------

[](#usageexamples)

```
