Download the PHP package ttpn18121996/historical-records without Composer
On this page you can find all versions of the php package ttpn18121996/historical-records. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ttpn18121996/historical-records
More information about ttpn18121996/historical-records
Files in ttpn18121996/historical-records
Package historical-records
Short Description Record the history of activities affecting the database in a simple way.
License MIT
Informations about the package historical-records
Historical records
General
Record the history of activities affecting the database in a simple way.
Content
- Installation
- Basic usage
- Save history
- The model configuration used for the HistoryManager
- History cleanup
- Show user actions and locale
- Configurations
- History retention period
- Names of devices that will save history
Installation
Install using composer:
Next, publish HistoricalRecords's resources using the historical-records:install
command:
Basic usage
First, add the HistoricalRecords\Concerns\HasHistory trait to your User model(s):
Save history
The model configuration used for the HistoryManager
History cleanup
Run the command to delete history more than 30 days
If you want to specify the number of days to exceed to clear the history, pass the option --time=
. Valid values:
Show user actions and locale
We support 1 set of languages to display user actions in the file config/en/historical.php
.
The model supports user action methods. We can rely on the language file to display user actions.
Suppose we have historical information
Configurations
Configuration parameters will be stored in the file config/historical-records.php
.
History retention period
You can configure the history period for cleaning. By default, history will be stored within 90 days.
Names of devices that will save history
You can configure device names to save history.
All versions of historical-records with dependencies
ext-json Version *
illuminate/collections Version ^11.0
illuminate/console Version ^11.0
illuminate/database Version ^11.0
illuminate/log Version ^11.0
hisorange/browser-detect Version ^5.0
illuminate/translation Version ^11.8