All notable changes to eloquent-sortable
will be documented in this file
- add methods to determine whether element is the last or first in order (#102)
- add support for PHP 8.0
- drop support for Laravel 5.8
- add config file
- add support for Laravel 8
- reduce dependency tree (#89)
- models don't always have an id as key, use
getKey
instead
- add support for Laravel 7
- add support for Laravel 6
- allow
setNewOrder
to accept a custom sort column
- drop support for L5.7 and below, PHP 7.1 and PHPUnit 7
- add support for Laravel 5.8
- add support for Laravel 5.7
- add support for L5.6
- drop support for anything lower that L5.5
- fix deps
- add compatibility with Laravel 5.5
- add
buildSortQuery()
- release without changes. Made to kickstart Packagist.
- add compatibility with Laravel 5.4
- added support for
SoftDeletes
- removed the need for a service provider
- some cleanup
- added support for collections passed to
setNewOrder
- added
moveToStart
,moveToEnd
andswapOrder
- Fixed a bug in
moveOrderUp
(see #13)
- Added
moveOrderUp
- andmoveOrderDown
-methods
- Fixed typehinting on scope
- SortableInterface is now Sortable
- Sortable is now SortableTrait
- getHighestOrderNumber() now retrieves the highest existing order number (not a new one)
- setHighestOrderNumber() no longer requires a Sortable object parameter
- sort_when_creating option
- Added shouldSortWhenCreating function
- Added test coverage
- Removed typehinting on scope in interface.
- Removed typehinting on scope
- Added an argument to
setNewOrder
to specify the starting order - Adopted psr-2 and psr-4