Skip to content

WARNING You're browsing the documentation for an upcoming version of Laravel DataTables. The documentation and features of this release are subject to change.

Html Builder Post Ajax

Use post method to submit the dataTables ajax request.

See official documentation for ajax option for details.



Post Ajax Parameter

Ajax parameter ($attributes) can either be a string or an array.

String Attributes

When the attribute passed is a string. The builder will treat this as the URL where we fetch our data.


{tip} Setting ajax to null or empty string will use the current url where DataTables was used.

Array Attributes

Attributes are the same with the ajax() method request valid parameters.

'url' => route(''),