Skip to content

WARNING You're browsing the documentation for an old version of LARAVEL-DATATABLES. Consider upgrading your project to laravel-datatables 11.0.

Html Builder Config

Default table attributes are now configurable. To begin, you need to publish the config by running php artisan vendor:publish --tag=datatables-html

Published config is located at config/datatables-html.php. You can then update the default table attributes that you prefer for every table rendered using the builder class.

return [
'table' => [
'class' => 'table',
'id' => 'dataTableId'