Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 365 Bytes

smart-search.md

File metadata and controls

16 lines (12 loc) · 365 Bytes

Runtime Smart Search

You can optionally enable/disable DataTables smart search feature by using smart api by passing true or false as the argument. Default argument value is true.

use DataTables;

Route::get('user-data', function() {
	$model = App\User::query();

	return DataTables::eloquent($model)
					->smart(false)
					->toJson();
});