Skip to content

Very simple server-side Dynatable handler for Laravel 4

Notifications You must be signed in to change notification settings

GaetanNaulin/Dynatable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynatable

Very simple server-side Dynatable handler for Laravel 4

Installation

composer require ifnot/dynatable:dev-master

Usage

<?php
class MyController {
  public function dynatable()
  {
    // Get fluent collection of what you want to show in dynatable
    $cars = Car::all();
    $columns = ['id', 'name', 'price', 'stock'];
    
    // Build dynatable response
    return new Dynatable($cars, $columns, [])
      ->make();
  }
}

About

Very simple server-side Dynatable handler for Laravel 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%