---
title: "Drag-and-Drop Sorting for Eloquent Models with Reorderable for Laravel"
url: https://daily.dev/posts/drag-and-drop-sorting-for-eloquent-models-with-reorderable-for-laravel-njegmuqga
source_url: https://laravel-news.com/drag-and-drop-sorting-for-eloquent-models-with-reorderable-for-laravel
type: article
source: "Laravel News"
published: 2026-05-19T13:13:11.797Z
updated: 2026-08-24T06:56:46.363Z
tags: ["php", "laravel"]
reading_time: 3
upvotes: 28
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Drag-and-Drop Sorting for Eloquent Models with Reorderable for Laravel

**[Laravel News](https://daily.dev/sources/ln)** · 3 min read · 28 upvotes · 1 comments

## Summary

Laravel Reorderable is a package that adds drag-and-drop sorting to Eloquent models. It provides a HasSortOrder trait and ReorderableContract interface, ready-made Blade and Livewire components, and automatic persistence of sort positions via a built-in route. Features include grouped reordering scoped to parent models, programmatic position control via moveToPosition() and reorderFromArray(), an artisan generator command for scaffolding, authorization via closure, and an ItemsReordered event for cache busting or audit logging. Requires PHP 8.3+, Laravel 13+, and Livewire 4+.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/drag-and-drop-sorting-for-eloquent-models-with-reorderable-for-laravel>

## Similar posts on daily.dev

- [Drag and Drop Sorting](https://daily.dev/posts/drag-and-drop-sorting-bzxysdsi7) · Larablog · 1 upvotes · 0 comments
- [How To Order Query Results in Laravel Eloquent](https://daily.dev/posts/how-to-order-query-results-in-laravel-eloquent-zy1ww8qqs) · DigitalOcean Community · 1 upvotes · 1 comments

---

Tags: [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/drag-and-drop-sorting-for-eloquent-models-with-reorderable-for-laravel-njegmuqga)
