RichieMcMullen/laravel-reorderable

Drag-and-drop ordering for Eloquent models (Blade + Livewire)

What

Adds a sort column to any model, a drag-and-drop list component, an endpoint that saves the new order, grouping (e.g. per project\_id), programmatic reordering and a reorder event. Requires PHP 8.3, Laravel 13, Livewire 4. Note: the Composer package is atomcoder/laravel-reorderable.

How to use

bash
composer require atomcoder/laravel-reorderable
php artisan reorderable:install
# add a sort_order column, implement the contract on the model, then query with ->ordered()

Reach for it when

Users need to reorder tasks, menu items or lessons by dragging.