Skip to content

Commit 666952c

Browse files
authored
Merge branch 'master' into patch-1
2 parents 452a369 + a6035a1 commit 666952c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

engine-query.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use DataTables;
2727
Route::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;
4141
Route::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;
5353
Route::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

installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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
2525
composer 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
3131
composer require yajra/laravel-datatables:"^12.0"

0 commit comments

Comments
 (0)