Skip to content

Commit 355d1ac

Browse files
committed
1 parent d642bba commit 355d1ac

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@
6969
- [Blacklist Columns](/docs/{{package}}/{{version}}/blacklist)
7070
- [Whitelist Columns](/docs/{{package}}/{{version}}/whitelist)
7171
- [Set Total Records](/docs/{{package}}/{{version}}/set-total-records)
72+
- [Skip Total Records](/docs/{{package}}/{{version}}/skip-total-records)
7273
- [Set Filtered Records](/docs/{{package}}/{{version}}/set-filtered-records)
7374
- [Skip Paging](/docs/{{package}}/{{version}}/skip-paging)
74-
- [Simple Pagination](/docs/{{package}}/{{version}}/simple-pagination)
7575

7676
### PLUGINS
7777

simple-pagination.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

skip-total-records.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Skip Total Records
2+
3+
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.
4+
5+
6+
## Example
7+
8+
9+
```php
10+
use DataTables;
11+
12+
Route::get('user-data', function() {
13+
$model = App\User::query();
14+
15+
return DataTables::eloquent($model)
16+
->skipTotalRecords()
17+
->toJson();
18+
});
19+
```

0 commit comments

Comments
 (0)