made with Laravel

Eloquent Sortable

Add sortable behaviour to Eloquent models

Visit Site

Description

Add sortable behaviour to Eloquent models

"This package provides a trait that adds sortable behaviour to an Eloquent model. The value of the order column of a new record of a model is determined by the maximum value of the order column of all records of that model + 1. The package also provides a query scope to fetch all the records in the right order."

Creator

Spatie
@spatie_be


Social Media Links

Laravel Eloquent Scope as Select Reuse Eloquent query scopes as select statements
icon-eye-dark Created with Sketch. 986
Laravel Review Rateable Review & Rating System
icon-eye-dark Created with Sketch. 1.213
Sentry for Laravel Laravel Application Monitoring
❤️ Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
Envoyer Zero Downtime Deployment
icon-eye-dark Created with Sketch. 2.129
Sushi Eloquent's Missing "Array" Driver
icon-eye-dark Created with Sketch. 398