File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Route::get('user-data', function() {
33
33
['id' => 3, 'name' => 'James'],
34
34
]);
35
35
36
- return DataTables::queryBuilder ($collection)->toJson();
36
+ return DataTables::collection ($collection)->toJson();
37
37
});
38
38
```
39
39
@@ -50,7 +50,7 @@ Route::get('user-data', function(DataTables $datatables) {
50
50
['id' => 3, 'name' => 'James'],
51
51
]);
52
52
53
- return $datatables->queryBuilder ($collection)->toJson();
53
+ return $datatables->collection ($collection)->toJson();
54
54
});
55
55
```
56
56
<a name =" ioc " ></a >
@@ -65,7 +65,7 @@ Route::get('user-data', function() {
65
65
['id' => 3, 'name' => 'James'],
66
66
]);
67
67
68
- return app('datatables')->queryBuilder ($collection)->toJson();
68
+ return app('datatables')->collection ($collection)->toJson();
69
69
});
70
70
```
71
71
You can’t perform that action at this time.
0 commit comments