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
Laravel Sortable

Laravel Sortable Laravel Package

sofa/laravel-sortable

A Laravel package for making Eloquent models sortable, letting you reorder records and persist their positions with minimal setup. Handy for drag-and-drop lists and custom sort columns.

View on GitHub
Deep Wiki
Context7

sofa/laravel-sortable brings simple drag-and-drop ordering to Laravel Eloquent models. Add the sortable trait to a model with a position column, and you get clean methods to move records up, down, to the top or bottom, or to an arbitrary index—with positions kept consistent automatically.

  • Trait-based setup for any Eloquent model
  • Move up, down, first, last, and to-position helpers
  • Automatic position recalculation after inserts, deletes, and reorders
  • Query scopes for fetching records in sorted order
  • Configurable position column and optional grouping
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.
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment