laravel-temporal | Temporal models and versioning for Laravel
kandi X-RAY | laravel-temporal Summary
kandi X-RAY | laravel-temporal Summary
laravel-temporal is a PHP library. laravel-temporal has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
Temporal models get three new fields... Whenever you save or update a model, the previous version's temporal_end is updated to mark the end of its lifespan, and a new version is inserted with an incremented version. When querying for temporal models, we automatically constrain the query so that only current versions are returned. Getting at old revisions is also possible using added methods. When paired with laravel-changelog, this will give you the history of every change made to a record, including who made each change and exactly what was changed.
Temporal models get three new fields... Whenever you save or update a model, the previous version's temporal_end is updated to mark the end of its lifespan, and a new version is inserted with an incremented version. When querying for temporal models, we automatically constrain the query so that only current versions are returned. Getting at old revisions is also possible using added methods. When paired with laravel-changelog, this will give you the history of every change made to a record, including who made each change and exactly what was changed.
Support
Quality
Security
License
Reuse
Support
laravel-temporal has a low active ecosystem.
It has 26 star(s) with 11 fork(s). There are 2 watchers for this library.
It had no major release in the last 12 months.
There are 2 open issues and 5 have been closed. On average issues are closed in 42 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of laravel-temporal is v5.0.1
Quality
laravel-temporal has 0 bugs and 0 code smells.
Security
laravel-temporal has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
laravel-temporal code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
laravel-temporal is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
laravel-temporal releases are available to install and integrate.
Installation instructions, examples and code snippets are available.
laravel-temporal saves you 441 person hours of effort in developing the same functionality from scratch.
It has 1044 lines of code, 80 functions and 5 files.
It has high code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed laravel-temporal and discovered the below as its top functions. This is intended to give you an instant insight into laravel-temporal implemented functionality, and help decide if they suit your requirements.
- Save the current model .
- Makes a temporal model .
- Restores the current revision .
- Get the primary keys for a table .
- Performs a delete on the model .
- Overwrite this query
- Add the versionsInRange extension to the builder .
- Add the versions at the given date .
- Extend the extension .
- Add the versionsAt extension to the builder .
Get all kandi verified functions for this library.
laravel-temporal Key Features
No Key Features are available at this moment for laravel-temporal.
laravel-temporal Examples and Code Snippets
No Code Snippets are available at this moment for laravel-temporal.
Community Discussions
No Community Discussions are available at this moment for laravel-temporal.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-temporal
For Laravel 5 use the version 1.1. For Laravel 6.0 use the version 2.0. For Laravel 8.0 use the version 4.0.
To make your model temporal, just add the Gazugafan\Temporal\Temporal trait to the model's class... You can also customize the column names and maximum temporal timestamp, if you'd like to change them from the defaults...
To make your model temporal, just add the Gazugafan\Temporal\Temporal trait to the model's class... You can also customize the column names and maximum temporal timestamp, if you'd like to change them from the defaults...
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page