Laravel Datatables

yajra/laravel-datatables image

Laravel Datatables stats

Downloads
2.4M
Stars
4,619
Open Issues
237
Forks
846

View on GitHub →

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_DEBUG is 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_DEBUG is set to false in production for security.

Documentation and Resources

This package is a powerful tool for integrating sophisticated data tables into Laravel applications, enhancing both development speed and user experience.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Yajra Laravel Datatables Related Articles

Backpack v7 is Launched - See What's New image

Backpack v7 is Launched - See What's New

Read article
Build Custom Admin Panels With Backpack for Laravel image

Build Custom Admin Panels With Backpack for Laravel

Read article
Laravel Boilerplate 7.0 image

Laravel Boilerplate 7.0

Read article
Laratables: Ajax support of DataTables in Laravel image

Laratables: Ajax support of DataTables in Laravel

Read article
The Artisan Files: Sara Bine image

The Artisan Files: Sara Bine

Read article
Laravel DataTables Bundle image

Laravel DataTables Bundle

Read article
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Statamic logo

Statamic

The drop-in ready Laravel CMS you’re been waiting for. Go full-stack or headless, flat file or database – it’s up to you.

Statamic
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media