Eloquent Sortable
Add sortable behaviour to Eloquent models
Description
Sortable Behavior for Eloquent Models
Overview
This package introduces a trait that enables sortable functionality within an Eloquent model. When a new record is created, its order column value is automatically set to one greater than the current maximum order value among all existing records of that model. Additionally, the package supplies a query scope that retrieves all records sorted correctly by their order values.
Creator
Spatie
@spatie_be
Related Projects
Sentry for Laravel
Laravel Error & Performance Monitoring
New in Laravel
Laravel Feature Alerts
Ray
Dump Debugging App
Aimeos
Laravel E-Commerce Framework
Simple QR-Code
QR-Code Generator
Laravel DOMPDF
DOMPDF Wrapper