Registry / database / spatie-eloquent-sortable

spatie-eloquent-sortable

JSON →
library5.0.1phppackagistunverified

Sortable behaviour for eloquent models

composer require spatie/eloquent-sortable
INSTALL
IMPORT
SIG · SPATIE-ELOQUENT-SO
S
spatie-eloquent-sortable
databasephpv5.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SortableTrait
use Spatie\EloquentSortable\SortableTrait;

Add sortable behavior to an Eloquent model

use Spatie\EloquentSortable\SortableTrait; class MyModel extends Model { use SortableTrait; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
44 hits · last 30 days
node
40
Resources
spatie-eloquent-sortable — pip install spatie-eloquent-sortable · libregistry