All notable changes to eloquent-sortable
will be documented in this file
- Update readme about publishing config file by @patrickbrouwers in spatie#120
- Add Dependabot Automation by @patinthehat in spatie#136
- Bump actions/checkout from 2 to 3 by @dependabot in spatie#137
- Add PHP 8.2 Support by @patinthehat in spatie#138
- Laravel 10 support by @Okipa in spatie#142
- @patrickbrouwers made their first contribution in spatie#120
- @dependabot made their first contribution in spatie#137
- @Okipa made their first contribution in spatie#142
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.0.1...4.0.2
- add support for Laravel 10
- drop support for Laravel 8
- drop support for PHP 8.0
- support Laravel 9
- require PHP 8+
- drop support for all PHP 7.x versions
- use PHP 8 syntax
- 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