Skip to content

Commit 941dd74

Browse files
committed
Add disable ordering sample code.
1 parent 847dc54 commit 941dd74

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

order-column.md

+13
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,17 @@ Route::get('user-data', function () {
3131
$query->orderBy('status', $order);
3232
});
3333
});
34+
```
35+
36+
Disable ordering via orderColumn.
37+
38+
```php
39+
use DataTables;
40+
41+
Route::get('user-data', function () {
42+
$model = App\User::query();
43+
44+
return DataTables::eloquent($model)
45+
->orderColumn('name', false);
46+
});
3447
```

0 commit comments

Comments
 (0)