spatie/eloquent-sortable
Add sortable behavior to Laravel Eloquent models via a trait. Automatically sets an order column on create (max + 1) and provides a scope to retrieve records in the correct order. Ideal for drag-and-drop lists and custom ordering.
|
Package
|
Constraint
|
|---|---|
| illuminate/database | ^10.0|^11.0|^12.0|^13.0 |
| illuminate/support | ^10.0|^11.0|^12.0|^13.0 |
| nesbot/carbon | ^2.63|^3.0 |
| spatie/laravel-package-tools | ^1.9 |
|
Package
|
Constraint
|
|---|---|
| orchestra/testbench | ^8.0|^9.6|^10.0|^11.0 |
| phpunit/phpunit | ^10.0|^11.5.3|^12.0 |
How can I help you explore Laravel packages today?