Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 449 Bytes

skip-total-records.md

File metadata and controls

21 lines (13 loc) · 449 Bytes

Skip Total Records

Note: This is deprecated on v10. Just use setTotalRecords instead.

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();
});