jQuery DataTables API for Laravel 4|5

Installs: 76 016

Dependents: 10

Stars: 396

Watchers: 38

Forks: 89

Open Issues: 19

v6.0.0-alpha 2015-09-22 02:52 UTC


Laravel 4.2|5.0|5.1 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.

Feature Overview

  • Supports the following data source
    • Eloquent ORM
    • Fluent Query Builder
    • Collection [available on v5.x and later]
  • Adding or editing content of columns and removing columns
  • Templating new or current columns via Blade Template Engine or by using Closure
  • Works with ALL the DATABASE supported by Laravel
  • Works with Oracle Database using Laravel-OCI8 package
  • Works with DataTables v1.10++.
    • Note: DT Legacy code is not supported on v5.x
  • Works with DataTables v1.9 and v1.10 legacy code.
    • Note: Use v4.x for Laravel 5 and v3.x for Laravel 4
  • Extended column filtering via filterColumn API.
  • Extended column ordering via orderColumn API.
  • Extended Query Builder functionality allowing you to filter using Datatables class directly.
  • Decorate your data output using league\fractal Transformer with Serializer support.
  • Works with Laravel Dependency Injection and IoC Container.
  • Provides a DataTable Html Builder to help you use the package with less code.
  • Provides XSS filtering function to optionally escape all or specified column values using escapeColumns('*'\['column']) method.
  • Provides Query Logging when application is in debug state. Important: Make sure that debug is set to false when your code is in production

Laravel 4.2 & DataTables v1.9.x Users

Most of the latest updates/features are not available on these versions. Please check L4 Branch and L5 DT1.9 for old documentations of its features.

Buy me a beer

Click here to lend your support to: Laravel Datatables and make a donation at pledgie.com !


Quick Installation

Laravel 5: composer require yajra/laravel-datatables-oracle:~5.0

Laravel 4: composer require yajra/laravel-datatables-oracle:~3.0

Service Provider



Laravel 4 'Datatables' => 'yajra\Datatables\Facades\Datatables',

Laravel 5 'Datatables' => 'yajra\Datatables\Datatables',

Laravel 5.1 'Datatables' => yajra\Datatables\Datatables::class,


Laravel 5: $ php artisan vendor:publish --provider="yajra\Datatables\DatatablesServiceProvider"

Laravel 4: $ php artisan config:publish yajra/laravel-datatables-oracle

And that's it! Start building out some awesome DataTables!


Licensed under the MIT License.