2017 © Pedro Peláez
 

library sortable

Package for handling column sorting

image

clean-solutions/sortable

Package for handling column sorting

  • Tuesday, August 1, 2017
  • by ZygasZ
  • Repository
  • 2 Watchers
  • 1 Stars
  • 43 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

Package for handling column sorting

Install

To install through Composer, by run the following command:, (*1)

composer require clean-solutions/sortable

Add Service Provider

Next add the following service provider in config/app.php., (*2)

'providers' => [
    CleanSolutions\Sortable\ServiceProvider::class,
],

Next publish the package's configuration file by running:, (*3)

php artisan vendor:publish --provider="CleanSolutions\Sortable\ServiceProvider" --tag="sortable"

Example

use CleanSolutions\Sortable\Traits\Sortable;

class CustomModule extends Model
{
    use Sortable;


    public $filable = [
        'name'
    ];
    ...
}

Controller is the same $data = CustomModule::sortable('name', 'asc')->paginate(15);, (*4)

In view use {{ sortable('name', 'Name') }}, (*5)

The Versions

01/08 2017

dev-master

9999999-dev https://github.com/clean-solutions/sortable

Package for handling column sorting

  Sources   Download

The Requires

 

by Zygimantas Gylys

laravel sortable column sort sorting

01/08 2017

1.0.0

1.0.0.0 https://github.com/clean-solutions/sortable

Package for handling column sorting

  Sources   Download

The Requires

 

by Zygimantas Gylys

laravel sortable column sort sorting