2017 © Pedro Peláez
 

library laravel-dynatable

A facade for using the dynatable format

image

twomein/laravel-dynatable

A facade for using the dynatable format

  • Tuesday, November 3, 2015
  • by petermein
  • Repository
  • 1 Watchers
  • 3 Stars
  • 551 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

Work had resumed on the original Ifnot library now called White-frame so this is deprecated.

Laravel Dynatable for Laravel 5

A library for sending connecting to the dynatables.js front end., (*1)

Credits to ifnot for making the original version of dynatables for laravel., (*2)

Installation

composer require twomein/laravel-dynatables

Usage

Register the service provider in the app.config, (*3)

'Twomein\LaravelDynatable\LaravelDynatableServiceProvider',

Example usage:, (*4)


//Get an Eloquent collection $cars = Car::all(); //Define the columns you want to send $columns = ['id', 'name', 'price', 'stock']; // Build dynatable response return Dynatable::make($cars, $columns, Input::all()); } }

Inputs

To give a little bit of insights about the inputs parameter:, (*5)

'page-length' => (int)$inputs['perPage'],
'page-number' => (int)$inputs['page'],
'offset' => (int)$inputs['offset'],
'sorts' => isset($inputs['sorts']) ? $inputs['sorts'] : null,
'search' => isset($inputs['queries']['search']) ? $inputs['queries']['search'] : null,

The Versions

03/11 2015

dev-master

9999999-dev

A facade for using the dynatable format

  Sources   Download

MIT

The Requires

 

by Anael Favre
by Peter Mein

laravel dynatable

28/10 2015

v0.1.1

0.1.1.0

A facade for using the dynatable format

  Sources   Download

MIT

The Requires

 

by Anael Favre
by Peter Mein

laravel dynatable

03/06 2015

v0.1.0

0.1.0.0

A facade for using the dynatable format

  Sources   Download

MIT

The Requires

 

by Anael Favre
by Peter Mein

laravel dynatable