Datatables Package for Laravel 4|5
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.
- 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. - Works with Laravel Dependency Injection and IoC Container.
- Provides a DataTable Html Builder to help you use the package with less code.
Buy me a beer
Documentations
- You will find user friendly and updated documentation in the wiki here: Laravel Datatables Wiki
- You will find the API Documentation here: Laravel Datatables API
- Demo Application is available for artisan's reference.
Quick Installation
Laravel 5: composer require yajra/laravel-datatables-oracle:~5.0
Laravel 4: composer require yajra/laravel-datatables-oracle:~3.0
Service Provider
yajra\Datatables\DatatablesServiceProvider
Facade
Laravel 4
'Datatables' => 'yajra\Datatables\Facades\Datatables',
Laravel 5
'Datatables' => 'yajra\Datatables\Datatables',
Laravel 5.1
'Datatables' => yajra\Datatables\Datatables::class,
Configuration
Laravel 5: $ php artisan vendor:publish
Laravel 4: $ php artisan config:publish yajra/laravel-datatables-oracle
And that's it! Start building out some awesome DataTables!
License
Licensed under the MIT License.