File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ use DataTables;
2727Route::get('user-data', function() {
2828 $query = DB::table('users');
2929
30- return DataTables::queryBuilder ($query)->toJson();
30+ return DataTables::query ($query)->toJson();
3131});
3232```
3333
@@ -41,7 +41,7 @@ use Yajra\DataTables\DataTables;
4141Route::get('user-data', function(DataTables $dataTables) {
4242 $query = DB::table('users');
4343
44- return $dataTables->queryBuilder ($query)->toJson();
44+ return $dataTables->query ($query)->toJson();
4545});
4646```
4747<a name =" ioc " ></a >
@@ -53,7 +53,7 @@ use DB;
5353Route::get('user-data', function() {
5454 $query = DB::table('users');
5555
56- return app('datatables')->queryBuilder ($query)->toJson();
56+ return app('datatables')->query ($query)->toJson();
5757});
5858```
5959
Original file line number Diff line number Diff line change 1212### Requirements
1313
1414- [ Laravel 12] ( https://github.com/laravel/framework )
15- - [ jQuery DataTables v1.10 .x] ( http://datatables.net/ )
15+ - [ DataTables 1.x|2 .x] ( http://datatables.net/ )
1616
1717<a name =" installing-laravel-datatables " ></a >
1818### Installing Laravel DataTables
@@ -25,7 +25,7 @@ Run the following command in your project to get the latest version of the packa
2525composer require yajra/laravel-datatables-oracle:" ^12.0"
2626```
2727
28- If you are using most of the DataTables plugins like Buttons & Html , you can alternatively use the all-in-one installer package.
28+ If you use most of the DataTables plugins like Buttons & HTML , you can use the all-in-one installer package.
2929
3030``` bash
3131composer require yajra/laravel-datatables:" ^12.0"
You can’t perform that action at this time.
0 commit comments