File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 4040 - [Filter Column](/docs/laravel-datatables/{{version}}/filter-column)
4141 - [Query Builder Extension](/docs/laravel-datatables/{{version}}/query-builder)
4242 - [Regex Search](/docs/laravel-datatables/{{version}}/regex)
43+ - [Smart Search](/docs/laravel-datatables/{{version}}/smart-search)
4344- Sorting/Ordering
4445 - [Manual Order](/docs/laravel-datatables/{{version}}/manual-order)
4546 - [Order Column](/docs/laravel-datatables/{{version}}/order-column)
Original file line number Diff line number Diff line change 1+ # Runtime Smart Search
2+
3+ You can optionally enable/disable Datatables smart search feature by using ` smart ` api by passing ` true ` or ` false ` as the argument.
4+ Default argument value is ` true ` .
5+
6+ ``` php
7+ use Datatables;
8+
9+ Route::get('user-data', function() {
10+ $model = App\User::query();
11+
12+ return Datatables::eloquent($model)
13+ ->smart(false)
14+ ->make(true);
15+ });
16+ ```
You can’t perform that action at this time.
0 commit comments