Awesome Lists

eloquent-sortable

by spatie

PHPpushed about 2 years ago

Sortable behaviour for Eloquent models

AI summary

Sorter

Adds sortable behaviour to Eloquent models by automatically assigning the highest order number to new records and providing a query scope for fetching records in the right order.

stars
1.4K
forks
139
watching
21
awesome lists
2
View on GitHubspatie.be/open-source/packages

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/spatie/eloquent-sortable/links.svg)](https://awesome.facts.dev/awesome/spatie/eloquent-sortable)
HTML
<a href="https://awesome.facts.dev/awesome/spatie/eloquent-sortable"><img src="https://awesome.facts.dev/shield/spatie/eloquent-sortable/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/spatie/eloquent-sortable/links.svg

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.