Laravel Datatables
Laravel Datatables stats
- Downloads
- 2.4M
- Stars
- 4,619
- Open Issues
- 237
- Forks
- 846
Laravel DataTables Complete Package.
jQuery DataTables API for Laravel
The jQuery DataTables API for Laravel package integrates the jQuery DataTables plugin with Laravel, supporting server-side data processing. This package makes it easy to use DataTables in your Laravel applications by using Eloquent ORM, Fluent Query Builder, or Collection to handle AJAX requests efficiently.
Key Features
- Support for Multiple Laravel Versions: Compatible with Laravel 4.2 up to Laravel 10.x.
- AJAX Support: Seamlessly handles server-side operations of the DataTables jQuery Plugin via AJAX.
- Diverse Data Sources: Works with Eloquent, Fluent Query Builder, and Collections.
- Easy Configuration: Minimal setup required, with optional publishing of configuration for customization.
- Debugging Mode: Includes details on queries and inputs during development if
APP_DEBUGis set to true.
Installation and Usage
Install the package via composer:
composer require yajra/laravel-datatables-oracle:"^10.0"
For Laravel versions 5.5 and above, service providers and facades are auto-discovered and registered. For earlier versions, manual registration in config/app.php is required:
'providers' => [ ..., Yajra\DataTables\DataTablesServiceProvider::class,] 'aliases' => [ ..., 'DataTables' => Yajra\DataTables\Facades\DataTables::class,]
Optional configuration can be published with:
php artisan vendor:publish --provider="Yajra\DataTables\DataTablesServiceProvider"
Important Notes
- Avoid
php artisan serve: Known issues with this command can lead to unexpected behavior. Prefer using Homestead or Valet for local development. - Production Environment: Ensure
APP_DEBUGis set to false in production for security.
Documentation and Resources
- Comprehensive documentation available on GitHub Docs and YajraBox Docs.
- Example applications and further usage instructions can be found on the Laravel DataTables Demo site.
This package is a powerful tool for integrating sophisticated data tables into Laravel applications, enhancing both development speed and user experience.