File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 4646 - [Manual Order](/docs/laravel-datatables/{{version}}/manual-order)
4747 - [Order Column](/docs/laravel-datatables/{{version}}/order-column)
4848 - [Order Columns](/docs/laravel-datatables/{{version}}/order-columns)
49+ - [Order Nulls Last](/docs/laravel-datatables/{{version}}/order-by-nulls-last)
4950- Utilities
5051 - [XSS filtering](/docs/laravel-datatables/{{version}}/xss)
5152 - [Blacklist Columns](/docs/laravel-datatables/{{version}}/blacklist)
Original file line number Diff line number Diff line change 1+ # Order by NULLS LAST
2+
3+ This api will set Datatables to perform ordering with ` NULLS LAST ` option.
4+
5+ ``` php
6+ use Datatables;
7+
8+ Route::get('user-data', function() {
9+ $model = App\User::query();
10+
11+ return Datatables::eloquent($model)
12+ ->orderByNullsLast()
13+ ->make(true);
14+ });
15+ ```
You can’t perform that action at this time.
0 commit comments