yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin
10,759,039 285
Install
composer require yajra/laravel-datatables-html
Latest Version:v13.0.0
License:MIT
Last Updated:Mar 18, 2026
Links: GitHub  ·  Packagist
Maintainer: yajra

Laravel DataTables Html Plugin

Laravel 12.x Latest Stable Version Scrutinizer Code Quality Total Downloads License

Continuous Integration Static Analysis PHP Linting

This package is a plugin of Laravel DataTables for generating dataTables script using PHP.

Requirements

Documentations

Laravel Version Compatibility

Laravel Package
8.x and below 4.x
9.x 9.x
10.x 10.x
11.x 11.x
12.x 12.x
13.x 13.x

Quick Installation

composer require yajra/laravel-datatables-html:^13

Setup scripts with ViteJS

Set the default javascript type to module by setting Builder::useVite() in the AppServiceProvider.

namespace App\Providers;

use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
use Yajra\DataTables\Html\Builder;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     */
    public function boot(): void
    {
        Paginator::useBootstrapFive();
        Builder::useVite();
    }
}

Publish Assets (Optional)

$ php artisan vendor:publish --tag=datatables-html

And that's it! Start building out some awesome DataTables!

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

License

The MIT License (MIT). Please see License File for more information.

Related Packages

yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for Laravel 5.5+.

6,795,696 119
yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

37,009,239 4,867
astolbov/laravel-js-jquery

jQuery assets for Laravel 4 framevork

31 1
schartz/cabinet

My ugly fix for laravel fiel uploads. Just a fork of andrew13/cabinets

0 0
yajra/laravel-datatables-buttons

Laravel DataTables Buttons Plugin.

10,193,376 256