All notable changes to eloquent-sortable
will be documented in this file
- Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 by @dependabot in #176
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in #181
- Fix PHP 8.4 deprecation notice by @clarkewing in #184
- @clarkewing made their first contribution in #184
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.4.0...4.4.1
- Dispatch event after performing a sort by @chrispage1 in #178
- @chrispage1 made their first contribution in #178
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.3.0...4.4.0
- Use model's qualified key name for update queries by @JeremyDunn in #175
- @JeremyDunn made their first contribution in #175
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.2.0...4.3.0
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #162
- Support laravel 11 by @mokhosh in #171
- bump min laravel 9 version to support ignore timestamps by @mokhosh in #173
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.1.1...4.2.0
Full Changelog: https://github.com/spatie/eloquent-sortable/compare/4.1.0...4.1.1
- Update readme about publishing config file by @patrickbrouwers in #120
- Add Dependabot Automation by @patinthehat in #136
- Bump actions/checkout from 2 to 3 by @dependabot in #137
- Add PHP 8.2 Support by @patinthehat in #138
- Laravel 10 support by @Okipa in #142
- @patrickbrouwers made their first contribution in #120
- @dependabot made their first contribution in #137
- @Okipa made their first contribution in #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