Download the PHP package oddvalue/eloquent-sortable without Composer
On this page you can find all versions of the php package oddvalue/eloquent-sortable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oddvalue/eloquent-sortable
More information about oddvalue/eloquent-sortable
Files in oddvalue/eloquent-sortable
Package eloquent-sortable
Short Description Some additional features on top of https://github.com/spatie/eloquent-sortable
License MIT
Homepage https://github.com/oddvalue/eloquent-sortable
Informations about the package eloquent-sortable
Some additional features on top of Spatie's Eloquent Sortable
This package is an extension of Spatie's excellent Eloquent Sortable. It adds the following additional features:
- New methods
$model->moveBefore(int|Sortable $target): void
$model->moveAfter(int|Sortable $target): void
$model->moveBetween(int|Sortable $before = null, Sortable $after = null): void
$model->moveTo(int|Sortable $newPosition): void
Note: The move methods rebuild the entire sequence so this package is not recommended for very large datasets.
Installation
You can install the package via composer:
Usage
Implement the interface and use the trait.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- jim
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of eloquent-sortable with dependencies
illuminate/contracts Version ^10.0|^11.0|^12.0
spatie/eloquent-sortable Version ^4.0
spatie/laravel-package-tools Version ^1.16.4