Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
eb84ace
Change function name from getUserId to getSystemUserId to avoid clash…
roshangautam Jan 16, 2016
cabe24e
Update readme.md
juanvillegas Feb 9, 2016
757b6f2
Merge pull request #203 from juanvillegas/patch-1
duellsy Feb 12, 2016
5ee8b14
Merge pull request #204 from VentureCraft/master
duellsy Feb 12, 2016
45a1ac4
Merge pull request #205 from VentureCraft/develop
duellsy Feb 12, 2016
80060d5
Fixes #222, where the array addition operator overwrites exempted fie…
jakebathman May 5, 2016
1309fb0
Added revisionable.* events
May 17, 2016
c14e2b9
Pass the modified model along with the event
May 18, 2016
920d0b7
Fixed readme
May 19, 2016
72d3ecc
Merge pull request #226 from OFFLINE-GmbH/feature/events
duellsy May 20, 2016
fb68b3d
Update README + contributing docs
stierler Jun 15, 2016
5a8476b
Merge pull request #199 from roshangautam/develop
Jun 15, 2016
448b6c5
Rename getUserId to getSystemUserId in non-trait for consistency
stierler Jun 15, 2016
524d39b
Merge pull request #223 from jakebathman/develop
Jun 15, 2016
2bdc5fc
#223 non-trait compatibility
stierler Jun 15, 2016
e01f8dd
Merge branch 'master' into develop
stierler Jun 16, 2016
0fa9e7a
Use model defined timestamp names (#220 + correct softDeletes handling)
stierler Jun 19, 2016
fa83b24
Fixed issue where keys containing _id but not at the end of the strin…
mmawdsleyhallnet Jul 11, 2016
d9b3d79
Merge pull request #240 from hallnet-dev/develop
duellsy Jul 13, 2016
803c61d
use getMorphClass() for revisionable_type
stierler Aug 2, 2016
ec46955
Merge branch 'develop' of github.com:VentureCraft/revisionable into d…
stierler Aug 2, 2016
5a76d29
Merge pull request #241 from VentureCraft/develop
Aug 2, 2016
35cdf14
Use array_key_exists instead of isset
Oct 27, 2016
ed0847c
add custom model support
Dec 21, 2016
6aec665
add default model
Dec 21, 2016
8bc161f
change Installation section for Laravel 5.x
Dec 21, 2016
41a22bd
Merge pull request #254 from Rias500/master
Jan 7, 2017
63c763f
Get actual class name for morph
Jan 27, 2017
05aedc6
Closes VentureCraft/revisionable#186
sebastienheyd Apr 20, 2017
9b0c177
Don't log if nothing is wrong
vpyatnitskiy May 1, 2017
a698de5
Don't convert model to string unnecessarily
vpyatnitskiy May 16, 2017
fddbe7e
Merge pull request #281 from vpyatnitskiy/dont_log_if_nothing_is_wrong
May 22, 2017
1b7c48b
Merge pull request #279 from sebastienheyd/master
May 22, 2017
a3705d7
Merge branch 'master' into develop (PR #279 should have gone to develop)
stierler May 22, 2017
7434be1
Merge pull request #283 from vpyatnitskiy/dont_serialize_empty_models
May 22, 2017
7d58f6e
Merge pull request #265 from absszero/develop
May 22, 2017
717b320
Cleanup examples, readme (fix non-https links), bump PHP requirements…
stierler May 22, 2017
8dc4ed7
minor readme changes
stierler May 22, 2017
08f1dc5
adds orchestra and first tests to project
Apr 18, 2018
07fde66
Correct path
fridzema Apr 26, 2018
76dcb4c
Sorts the keys of a JSON object due Normalization performed by MySQL …
jitendraavdevs Jul 11, 2018
60c26dd
Mark package as abandoned
rickmills Jul 23, 2018
62fd3fe
Merge pull request #321 from rickmills/patch-1
duellsy Jul 30, 2018
1e751ee
Merge pull request #311 from Juddling/master
duellsy Aug 9, 2018
3655420
adding compatibility with laravel 5.8
seedgabo Mar 27, 2019
7c5393c
Update RevisionableTrait.php
seedgabo Mar 27, 2019
519be8e
Update composer.json
seedgabo Mar 27, 2019
941ea65
Update RevisionableTrait.php
seedgabo Mar 27, 2019
9e5fbdf
Merge branch 'master' into develop
duellsy Apr 22, 2019
e8e3acb
Require Laravel 5.4 or higher
tabacitu Apr 23, 2019
5437e0b
Update composer.json
tabacitu Apr 23, 2019
3d58f72
Update RevisionableTrait.php
tabacitu Apr 23, 2019
6531983
Merge branch 'master' into master
tabacitu Apr 23, 2019
4eb28ee
Update composer.json
tabacitu Apr 23, 2019
5ae7095
Merge pull request #344 from seedgabo/patch-1
duellsy Apr 23, 2019
6b178df
Merge pull request #347 from tabacitu/master
duellsy Apr 23, 2019
51e431d
Update composer.json
duellsy Jun 14, 2019
cbe9d1c
Merge pull request #312 from fridzema/patch-1
duellsy Jun 14, 2019
79b1e62
Merge pull request #269 from brightrobots/fix-map-morph
duellsy Jun 14, 2019
8e5b6de
added auto discovery for 5.5 onwards
msonowal Jul 8, 2019
8ebadae
Composer update to allow for Laravel 6.0
duellsy Aug 5, 2019
1ef2e94
Merge pull request #319 from avdevs/master
duellsy Sep 1, 2019
5f3e0c2
Add support for Laravel 6.0
ethanransdellrarebird Sep 3, 2019
e595180
Merge pull request #353 from ethanransdellrarebird/add_support_for_la…
duellsy Sep 4, 2019
a9f592b
Removing the dependency on array_get
awjudd Sep 9, 2019
4e288ba
Adding in the call to camel case
awjudd Sep 9, 2019
e09256c
Added the output format for values - "options".
Oct 23, 2019
31034cf
Update readme.md
adiafora Oct 23, 2019
4c535e9
Merge pull request #349 from msonowal/patch-1
Nov 12, 2019
dacfcd5
Removing trailing comma
duellsy Nov 12, 2019
151336f
added support for Laravel 7
tabacitu Mar 3, 2020
aa3fa94
Update Revisionable - Support Backpack
alan-smith-be Aug 17, 2020
48485d5
Update readme.md
duellsy Sep 8, 2020
97c1116
Update composer.json
duellsy Sep 8, 2020
800d6f9
Support additional field within revisions
joshuaziering Jan 2, 2020
2112f25
Add tests
jasonmccreary Jan 2, 2020
d52b7bc
Update readme.md
duellsy Sep 8, 2020
23cfb2d
use newer conventions
zachweix Nov 21, 2019
b3c462e
Added storing Force Delete
Oct 25, 2019
2f29a96
Storing Force Delete in README
Oct 25, 2019
2fb4324
Storing Force Delete in README
Oct 25, 2019
4fe0bcf
checks value is object before using json_decode() in preSave()
Aug 31, 2020
49e2db2
Cast values are now correctly checked for either array or object
Sep 9, 2020
2c68e7a
fixed indentation to match original format
Sep 9, 2020
e8a89ce
Revert #112 and follow #113
lancepioch Mar 2, 2021
7dd938d
Update RevisionableTrait.php
Reinbier Mar 29, 2021
24ef304
support Laravel 9
tabacitu Jan 19, 2022
e40e824
Update readme.md
AhmadBD Nov 6, 2022
0533f5f
Bump dependencies for Laravel 10
laravel-shift Feb 2, 2023
40b122b
Update readme.md
Mar 8, 2023
42d37d5
Bump dependencies for Laravel 11
laravel-shift Feb 27, 2024
f2175b5
Merge pull request #430 from laravel-shift/l11-compatibility
duellsy Mar 13, 2024
01c3a4c
Bump dependencies for Laravel 12
laravel-shift Feb 15, 2025
8c7bba9
Merge pull request #440 from laravel-shift/l12-compatibility
duellsy Feb 16, 2025
972a930
All for passing custom attributes to revision table
philipmclifton Feb 10, 2016
094827f
DS-2114 - Support revisions in MDP
khill-wonde Jun 11, 2025
475de45
Merged 1.42.0 changes with additional connection switching patch
khill-wonde Jun 11, 2025
b6c559c
Handle changed date attributes which are not formatted as date strings
Dec 18, 2025
3ec0ddd
Cast Carbon object to UTC time before converting to a string
Dec 19, 2025
ad9cb04
Revert casting carbon date object to UTC before comparing
Dec 22, 2025
21eb60f
Convert passed date to UTC before comparing changed data
Jan 9, 2026
914b179
Update formatting
Jan 16, 2026
3394336
Merge pull request #3 from wondeltd/fix-incorrect-date-revisions
Clairemc3 Jan 16, 2026
c0f4da5
Rehydrate models in Date tests for comparison
Jan 19, 2026
fe4f9c4
Ensure original date is string before passing to isStandardDateFormat…
Jan 19, 2026
562a786
Merge pull request #4 from wondeltd/fix-incorrect-date-revisions
Clairemc3 Jan 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/vendor
composer.lock
/.idea
.phpunit.result.cache
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contribution Guidelines

Contributions are encouraged and welcome; to keep things organised, all bugs and requests should be
opened in the github issues tab for the main project, at [venturecraft/revisionable/issues](https://github.com/venturecraft/revisionable/issues)
opened in the GitHub "Issues" tab for the main project, at [venturecraft/revisionable/issues](https://github.com/venturecraft/revisionable/issues)

Please submit all pull requests to the [revisionable/develop](https://github.com/VentureCraft/revisionable/tree/develop) branch, so they can be tested before being merged into the master branch.
81 changes: 52 additions & 29 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,52 @@
{
"name": "venturecraft/revisionable",
"license": "MIT",
"description": "Keep a revision history for your models without thinking, created as a package for use with Laravel",
"keywords": ["model", "laravel", "ardent", "revision", "history"],
"homepage": "http://github.com/venturecraft/revisionable",
"authors": [
{
"name": "Chris Duell",
"email": "me@chrisduell.com"
}
],
"support": {
"issues": "https://github.com/VentureCraft/revisionable/issues",
"source": "https://github.com/VentureCraft/revisionable"
},
"require": {
"php": ">=5.3.0",
"illuminate/support": "~4.0|~5.0|~5.1"
},
"autoload": {
"classmap": [
"src/migrations"
],
"psr-0": {
"Venturecraft\\Revisionable": "src/"
}
}
}
{
"name": "venturecraft/revisionable",
"license": "MIT",
"description": "Keep a revision history for your models without thinking, created as a package for use with Laravel",
"keywords": [
"model",
"laravel",
"ardent",
"revision",
"audit",
"history"
],
"homepage": "http://github.com/venturecraft/revisionable",
"authors": [
{
"name": "Chris Duell",
"email": "me@chrisduell.com"
}
],
"support": {
"issues": "https://github.com/VentureCraft/revisionable/issues",
"source": "https://github.com/VentureCraft/revisionable"
},
"require": {
"php": ">=5.4.0",
"illuminate/support": "~4.0|~5.0|~5.1|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"laravel/framework": "~5.4|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0"
},
"autoload": {
"classmap": [
"src/migrations"
],
"psr-0": {
"Venturecraft\\Revisionable": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Venturecraft\\Revisionable\\Tests\\": "tests/"
}
},
"require-dev": {
"orchestra/testbench": "~3.0|^8.0|^9.0|^10.0"
},
"extra": {
"laravel": {
"providers": [
"Venturecraft\\Revisionable\\RevisionableServiceProvider"
]
}
}
}
18 changes: 18 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
>

<testsuites>
<testsuite name="Testbench Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>

<php>
<env name="APP_ENV" value="testing"/>
</php>
</phpunit>
Loading