Skip to content
Icon

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

Skip Total Records

Skip total records aims to improve dataTables response time by skipping the total records count query and settings its value equals to the filtered total records.

Example

use DataTables;
 
Route::get('user-data', function() {
$model = App\User::query();
 
return DataTables::eloquent($model)
->skipTotalRecords()
->toJson();
});