This package is a plugin of Laravel DataTables for handling server-side function of exporting the table as csv, excel, pdf and printing.
- PHP >= 8.3
- Laravel 12.x
- Laravel DataTables
- jQuery DataTables v1.10.x
- jQuery DataTables Buttons Extension
| 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-buttons:^13
Yajra\DataTables\ButtonsServiceProvider::class
$ php artisan vendor:publish --tag=datatables-buttons --force
And that's it! Start building out some awesome DataTables!
DataTableHtml::make() resolves the HTML builder through Laravel's service container, whether or not constructor arguments are provided. Explicit positional arguments are passed to the resolved class as constructor overrides.
Because container resolution happens before handle() builds the table, applications can use container bindings and resolving or afterResolving callbacks to configure or extend the HTML builder consistently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email aqangeles@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
