You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,8 @@ By default the query builder will fetch the latest version (e. g. `User::find(1)
90
90
91
91
*`allVersions()` returns all versions of the queried items<br>Example: `User::allVersions()->get()` will return all versions of all users
92
92
93
+
*`moment(Carbon)` returns a specific version, closest but lower than the input date<br>Example: `User::moment(Carbon::now()->subWeek()->find(1)` will return the version at that point in time.
94
+
93
95
#### Create, update and delete records
94
96
95
97
All these operations can be performed normally. The package will automatically generate a version 1 on create, the next version on update and will remove all versions on delete.
0 commit comments