2017 © Pedro Peláez
 

library autosortingmodeltrait

A very simple trait to auto-sort models based on querystring values.

image

kevinruscoe/autosortingmodeltrait

A very simple trait to auto-sort models based on querystring values.

  • Saturday, November 25, 2017
  • by kevdotbadger
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

About

This is a very simple trait that add auto-sorting to Eloquent models., (*1)

Usage

Import the trait like:, (*2)

<?php

namespace App;

use KevinRuscoe\AutoSortingModel\Traits\AutoSortingModelTrait as AutoSortable;

class User
{
    use AutoSortable;
}

By default the trait will look for the sortColumn and sortDirection querystring values to do the sorting. If you publish the provided config file you can overwrite these., (*3)

There's a helper function to help you craft sorting links using sortLink($modelAttribute)., (*4)

The Versions

25/11 2017

dev-master

9999999-dev

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

1.0.1

1.0.1.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

1.0

1.0.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

0.14

0.14.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

0.13

0.13.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

0.12

0.12.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

0.11

0.11.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

0.10

0.10.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

0.8

0.8.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

0.9

0.9.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

25/11 2017

0.7

0.7.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

10/11 2017

0.6

0.6.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

10/11 2017

0.5

0.5.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

10/11 2017

0.4

0.4.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

10/11 2017

0.2

0.2.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

10/11 2017

0.3

0.3.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting

10/11 2017

0.1

0.1.0.0

A very simple trait to auto-sort models based on querystring values.

  Sources   Download

MIT

The Requires

 

laravel model sorting