Laravel DataTables HTML builder plugin
yajra/laravel-datatables-html is a Laravel package for laravel datatables html builder plugin.
It currently has 284 GitHub stars and 10.761.236 downloads on Packagist (latest version v13.0.0).
Install it with composer require yajra/laravel-datatables-html.
Discover more Laravel packages by yajra
or browse all Laravel packages to compare alternatives.
Last updated
This package is a plugin of Laravel DataTables for generating dataTables script using PHP.
| 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 |
composer require yajra/laravel-datatables-html:^13
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();
}
}
$ php artisan vendor:publish --tag=datatables-html
And that's it! Start building out some awesome DataTables!
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.