Tinkerwell - The PHP Scratchpad

Laravel Datatables Oracle

yajra/laravel-datatables-oracle image

Laravel Datatables Oracle stats

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

View on GitHub →

jQuery DataTables API for Laravel 4|5|6|7|8|9|10

jQuery DataTables API for Laravel

The yajra/laravel-datatables-oracle package provides seamless integration of the jQuery DataTables plugin with Laravel. This package allows you to manage server-side data for DataTables using Laravel's Eloquent ORM, Fluent Query Builder, or Collections, enhancing your application's data manipulation capabilities.

Key Features

  • AJAX Data Handling: Efficiently manage DataTable content server-side to optimize performance and control.
  • Support for Multiple Laravel Versions: Compatible with Laravel versions from 4.2 up to 10.x.
  • Eloquent, Query Builder, and Collection Support: Flexible data handling options to suit different needs.
  • Easy Debugging: Includes detailed query and input data when APP_DEBUG is set to true, aiding in development and troubleshooting.

Installation and Setup

Install the package via composer:

composer require yajra/laravel-datatables-oracle:"^10.0"

Optional Configuration

For Laravel versions below 5.5, manually register the provider and facade in config/app.php:

'providers' => [
...,
Yajra\DataTables\DataTablesServiceProvider::class,
]
 
'aliases' => [
...,
'DataTables' => Yajra\DataTables\Facades\DataTables::class,
]

Publish the configuration file with:

php artisan vendor:publish --provider="Yajra\DataTables\DataTablesServiceProvider"

Note: Avoid using php artisan serve due to known issues. Prefer using solutions like Laravel Homestead or Valet for local development.

Usage

Retrieve and return DataTables-ready JSON:

return datatables()->eloquent(User::query())->toJson();
return datatables()->query(DB::table('users'))->toJson();
return datatables()->collection(User::all())->toJson();

Documentation and Support

Contributing

Community contributions are welcome. Check the GitHub repository for contribution guidelines.

This package simplifies the integration of server-side DataTables in Laravel, providing powerful AJAX data management for responsive web applications.

Cube

Laravel Newsletter

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


Yajra Laravel Datatables Oracle Related Articles

Manage PostgreSQL Databases Directly in VS Code with Microsoft's Extension image

Manage PostgreSQL Databases Directly in VS Code with Microsoft's Extension

Read article
TablePlus Relational Database GUI image

TablePlus Relational Database GUI

Read article
DreamFactory – Turn any database into an API Platform (Sponsor) image

DreamFactory – Turn any database into an API Platform (Sponsor)

Read article
Extending Laravel Homestead image

Extending Laravel Homestead

Read article
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
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
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell