This package provides a trait that adds sortable behavior 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. Spatie is a web design agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Features

  • This package can be installed through Composer
  • Documentation available
  • Add sortable behaviour to your model
  • The package contains some integration/smoke tests
  • Set up with Orchestra
  • Licensed under the MIT License

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Sortable behaviour for Eloquent models

Sortable behaviour for Eloquent models Web Site

Other Useful Business Software
Build Securely on AWS with Proven Frameworks Icon
Build Securely on AWS with Proven Frameworks

Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Download Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Sortable behaviour for Eloquent models!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Frameworks

Registered

2024-04-12