Releases: xalaida/laravel-position
Releases · xalaida/laravel-position
0.9.0
0.8.1
0.8.0
0.7.0
Added
getStartPosition
method to define from what number start counting modelsshiftWithTimestamps
method to update timestamps when shifting models- Experimental
lockPositions
method to disable database queries during insertions
Changed
- Now timestamps will be preserved by default when shifting model positions
- Method
newPositionQuery
now is public - Use SQL
count
method instead ofmax
for calculating position at the end - Refactored using
PositionObserver
0.6.0
0.5.2
0.5.1
0.5.0
Added
- Possibility to create model in the middle of the sequence
- Possibility to create model in the beginning of the sequence
- Possibility to update positions without shifting other models
- Extra argument for shift amount in
shiftToStart
andshiftToEnd
methods
Changed
- Rename method
getInitPosition
tostartPosition
- Position of other models now are shifted after the model update
0.4.1
Add Laravel 9 support
[0.4.0] - 2022-05-08
Added
- Laravel 9 support