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

app-ark/eloquent-sortable

A Laravel package that adds sortable behavior to Eloquent models, letting you reorder records via a position column and move items up, down, or to any spot. Includes query scopes and helpers to keep ordering consistent automatically.

View on GitHub
Deep Wiki
Context7

app-ark/eloquent-sortable is a Laravel package that adds effortless ordering to your Eloquent models. By applying the provided trait, any model gains a sortable position column, letting you reorder records with simple method calls instead of hand-written queries. It's ideal for drag-and-drop lists, custom menu ordering, and any dataset where sequence matters.

The package handles the tedious parts—shifting sibling records, inserting at arbitrary positions, and keeping ordering consistent—so your code stays clean. All operations are exposed through an intuitive API that integrates naturally with existing Eloquent models and queries.

  • Trait-based setup for quick integration
  • Move items up, down, or to a specific position
  • Automatic sibling reordering on insert or delete
  • Scoped sorting for grouped sequences
  • Chainable, Eloquent-friendly API
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.
encore2/laravel-admin2
cboxdk/laravel-console-kit
shapecode/doctrine-dbal-datetimeutc
gilads-otiannoh254/inertia-protocol
dakiquang/laravel-oauth-refresh-lock
woda/laravel-worktrees
dalefranks/ramasite
faghy/laracashbook
roundly-consulting/google-places-for-laravel
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
adachsoft/cli-process-tester
adachsoft/changelog-linter
adachsoft/collection
adachsoft/php-code-style
adachsoft/api-version-bundle
cgv/localized-resource