rafaelqm / laravel-datatables
jQuery DataTables API for Laravel 4|5
Requires
- php: >=5.5.9
- dompdf/dompdf: ^0.6.1
- illuminate/database: ~5.0
- illuminate/filesystem: ~5.0
- illuminate/http: ~5.0
- illuminate/support: ~5.0
- illuminate/view: ~5.0
- laravelcollective/html: ~5.0
- league/fractal: ~0.12
- maatwebsite/excel: ^2.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
- 6.6
- 6.5
- v6.3.1
- v6.3.0
- v6.2.4
- v6.2.3
- v6.2.2
- v6.2.1
- v6.2.0
- v6.1.3
- v6.1.2
- v6.1.1
- v6.1.0
- 6.0.x-dev
- 6.0.1
- v6.0.0
- v6.0.0-RC1
- v6.0.0-beta
- v6.0.0-alpha
- v5.12.5
- v5.12.4
- v5.12.3
- v5.12.2
- v5.12.1
- v5.12.0
- v5.11.14
- v5.11.13
- v5.11.12
- v5.11.11
- v5.11.10
- v5.11.9
- v5.11.8
- 5.11.7
- v5.11.6
- v5.11.5
- v5.11.4
- v5.11.3
- v5.11.2
- v5.11.1
- v5.11.0
- v5.10.0
- v5.9.2
- v5.9.1
- v5.9.0
- v5.8.6
- v5.8.5
- v5.8.4
- v5.8.3
- v5.8.2
- v5.8.1
- v5.8.0
- v5.7.0
- v5.6.1
- v5.6.0
- v5.5.11
- v5.5.10
- v5.5.9
- v5.5.8
- v5.5.7
- v5.5.6
- v5.5.5
- v5.5.4
- v5.5.3
- v5.5.2
- v5.5.1
- v5.5.0
- v5.4.5
- v5.4.4
- v5.4.3
- v5.4.2
- v5.4.1
- v5.4.0
- v5.3.2
- v5.3.1
- v5.3.0
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.2
- v5.1.1
- v5.1.0
- 5.0.x-dev
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v5.0.0-beta
- v4.3.3
- v4.3.2
- v4.3.1
- v4.3.0
- v4.2.1
- v4.2.0
- v4.1.6
- v4.1.5.1
- v4.1.5
- v4.1.4
- v4.1.3.2
- v4.1.3.1
- v4.1.3
- v4.1.2.1
- v4.1.2
- v4.1.1
- v4.1.0
- v4.0.12.1
- v4.0.12
- v4.0.11
- 4.0.10
- v4.0.9
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.6.12
- v3.6.11
- v3.6.10
- v3.6.9
- v3.6.8
- v3.6.7
- v3.6.6
- v3.6.5
- v3.6.4
- v3.6.3
- v3.6.2
- v3.6.1
- v3.6.0
- v3.5.1
- v3.5.0
- v3.4.6
- v3.4.5.1
- v3.4.5
- v3.4.4
- v3.4.3.2
- v3.4.3.1
- v3.4.3
- v3.4.2.1
- v3.4.2
- v3.4.1
- v3.4.0
- v3.3.15.1
- v3.3.15
- v3.3.14
- v3.3.13
- v3.3.12
- v3.3.11
- v3.3.10
- v3.3.9
- v3.3.8
- v3.3.7
- v3.3.6
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.5.0
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- 1.3.0
- dev-master
- dev-develop
- dev-L4
- dev-L5-DT1.9
This package is auto-updated.
Last update: 2024-11-13 10:06:12 UTC
README
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]
- DataTable Service Implementation (v6.x).
- Adding or editing content of columns and removing columns
- Modify column values 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 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
- Easily attach a resource on json response via
->with()
method. - Built-in support for exporting to CSV, EXCEL and PDF using Laravel-Excel.
- Built-in printer friendly view or create your own by overriding
printPreview()
method. - Provides an artisan command for generating a DataTable service and scope.
- See change logs for more details.
Requirements:
- PHP 5.5.9 or later.
- Laravel 5.0 or later.
- DataTables jQuery Plugin v1.10.x
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
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
composer require rafaelqm/laravel-datatables:~6.0
Service Provider
Rafaelqm\Datatables\DatatablesServiceProvider::class
Facade
Datatables
facade are automatically registered as an alias for Rafaelqm\Datatables\Datatables
class.
Configuration and Assets
$ php artisan vendor:publish --tag=datatables
And that's it! Start building out some awesome DataTables!
Upgrading from v5.x to v6.x
- Change all occurrences of
rafaelqm\Datatables
toRafaelqm\Datatables
. (Use Sublime's find and replace all for faster update). - Remove
Datatables
facade registration. - Temporarily comment out
Rafaelqm\Datatables\DatatablesServiceProvider
. - Update package version on your composer.json and use
rafaelqm/laravel-datatables: ~6.0
- Uncomment the provider
Rafaelqm\Datatables\DatatablesServiceProvider
.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email aqangeles@gmail.com instead of using the issue tracker.
Credits
- This project is used to be a fork from bllim/laravel4-datatables-package.
- All Contributors
License
The MIT License (MIT). Please see License File for more information.