Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Quickly Add Drag-and-Drop Sorting to Laravel Apps with New Package

Laravel News 1 min read

Reordering lists is a common need in Laravel applications, but building the UI, wiring JavaScript, and persisting order often requires more effort than expected. A new package simplifies this by providing a single trait and a Livewire (or Blade) component to enable drag-and-drop sorting in minutes.

The package handles the front-end interactivity and database updates, allowing developers to focus on the application logic. A demo shows a "Top 5 movies" list where users can drag items to reorder them, with changes automatically saved.

The API involves adding a sort_order column to the relevant migration, using a trait on the Eloquent model, and including a Livewire component in the view. This approach eliminates boilerplate code and accelerates development.

React