Donations Appreciated

No one has ever become poor by giving. - Anne Frank, diary of Anne Frank

Laravel DataTables Demo Application

Datatables Package for Laravel 4.2|5.x

Laravel 4.2|5.x Latest Stable Version Build Status Scrutinizer Code Quality Total Downloads License

This package is created to handle server-side works of DataTables jQuery Plugin via AJAX option by using Eloquent ORM, Fluent Query Builder or Collection.

use Yajra\Datatables\Facades\Datatables;

// Using Eloquent
return Datatables::eloquent(User::query())->make(true);

// Using Query Builder
return Datatables::queryBuilder(DB::table('users'))->make(true);

// Using Collection
return Datatables::collection(User::all())->make(true);

// Using the Engine Factory
return Datatables::of(User::query())->make(true);
return Datatables::of(DB::table('users'))->make(true);
return Datatables::of(User::all())->make(true);


Donations Appreciated

Doing nothing for others is the undoing of ourselves. - Horace Mann

Heads Up!

This package is designed to work side-by-side with jQuery plugin. So make sure to check out the plugin's documentations.

Quick Links