Download the PHP package conceptbyte/time-traveller without Composer
On this page you can find all versions of the php package conceptbyte/time-traveller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download conceptbyte/time-traveller
More information about conceptbyte/time-traveller
Files in conceptbyte/time-traveller
Package time-traveller
Short Description Time travelling for Laravel models.
License MIT
Informations about the package time-traveller
Laravel Time Traveller
Time travelling for Laravel 5 models.
- Uses database table to store model states.
- Can be accessed from ORM or URL Query String.
- Bundled command to keep revisions table healthy.
- Ability to override Revisions model for extension.
Installation
Run the following command on your project root.
Add the service provider to the file under the key. Make sure to add it after the default laravel service providers.
Publish Configuration
Run to publish the package configurations.
Modify Configuration
Use the file to modify the package defaults.
- Revisions Model
- Query String Parameter
- Clear audits that are older than
Usage
Enable time traveller on a model by using the trait.
All models that use the trait must implement which returns any string. This function can be used to save any additional attributes such as the owner of the change.
Get the state of a record at a specific data/time.
Get the state of a record using a query string.
URL:
Get a model with revisions
You can clear the audits table records that are older than a specified range.
. This will read the config file and clear records that are older than the configured number of days.
All versions of time-traveller with dependencies
illuminate/database Version ~5.2
illuminate/support Version ~5.2
illuminate/console Version ~5.2