2017 © Pedro Peláez
 

library ordered-eloquent

An extension of Eloquent ORM for automatically ordering results

image

rtablada/ordered-eloquent

An extension of Eloquent ORM for automatically ordering results

  • Tuesday, March 4, 2014
  • by rtablada
  • Repository
  • 1 Watchers
  • 3 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Warning, (*1)

This package is no longer under active development. This was a quick fix for a submitted issue on the Laravel Repository. I will continue to keep an eye on Pull Requests, but will not be actively tracking issues., (*2)

Installation

Add 'rtablada/ordered-eloquent': '~1' to your composer.json and extend Rtablada\OrderedEloquent\Model., (*3)

You can also replace the Eloquent alias with Rtablada\OrderedEloquent\Model in your app/config/app.php., (*4)

Use

Set the $orderBy property to the column you want all queries sorted by., (*5)

Note this sort will occur on ALL queries, (*6)

You can also set the $sortDir to set the sort direction (this defaults to ASC)., (*7)

The Versions

04/03 2014

dev-master

9999999-dev

An extension of Eloquent ORM for automatically ordering results

  Sources   Download

MIT

The Requires

 

orm laravel eloquent

04/03 2014

1.0.0

1.0.0.0

An extension of Eloquent ORM for automatically ordering results

  Sources   Download

MIT

The Requires

 

orm laravel eloquent