aigletter / model-history
Package for saving model history
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/aigletter/model-history
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-10-17 08:46:48 UTC
README
Configuration
To save history into the database the package needs to know which database connection to use and what the name of the table is.
By default the package will use the default database connection and use a table named history.
If you want to change these options, you'll have to publish the config file.
php artisan vendor:publish --provider="Aigletter\ModelHistory\ModelHistoryServiceProvider" --tag="config"
This will give you a model-history.php config file in which you can make the changes.
To make your life easy, the package also includes a ready to use migration which you can publish by running:
php artisan vendor:publish --provider="Aigletter\ModelHistory\ModelHistoryServiceProvider" --tag="migrations"
This will place a history table's migration file into database/migrations directory. Now all you have to do is run php artisan migrate to migrate your database.