Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquent Sortable

Eloquent Sortable Laravel Package

42phoenix42/eloquent-sortable

A Laravel package that adds sortable behavior to Eloquent models, letting you reorder records by a position column and query them in order. Provides traits and helpers for moving items up, down, or to a specific position—useful for manually ordered lists like menus or galleries.

View on GitHub
Deep Wiki
Context7

Eloquent Sortable adds lightweight, trait-based ordering to any Laravel Eloquent model. Drop the trait onto a model, define your sort column, and the package keeps records in a contiguous, gap-free sequence as you create, move, or delete rows—no manual position bookkeeping required.

  • Zero-config trait integration with existing models
  • Move up/down/to-position helpers with automatic reordering
  • Scoped sorting per parent or group column
  • Gap-free sequences maintained on insert and delete
  • Compatible with Laravel query builder and eager loading
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console