Skip to content

thecodemill/eloquent-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EloquentFilter

Add simple sortability to Eloquent models.

Installation

Install the EloquentSort package via Composer:

composer require thecodemill/eloquent-sort

Usage

As the name suggests, this package is intended for use with Eloquent and therefor works seamlessly with Laravel.

EloquentSort allows you to define sort handlers on any of your app's models to make sorting model queries much simpler. A sort handler is very similar to a local scope, but by using the Model::sort() method, any number of scopes may be applied at once without the need for chaining the individual scopes or query modifiers.

Author

About

Add simple sortability to Eloquent models.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages