Skip to content

Commit 7e54f73

Browse files
authored
Merge pull request yajra#120 from jiwom/patch-2
fix: Use facade
2 parents 2facaab + 1b42643 commit 7e54f73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

add-column.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can add a custom column to your response by using the `addColumn` api.
88
## Add Column with Blade Syntax
99

1010
```php
11-
use DataTables;
11+
use Yajra\DataTables\Facades\DataTables;
1212

1313
Route::get('user-data', function() {
1414
$model = App\User::query();
@@ -23,7 +23,7 @@ Route::get('user-data', function() {
2323
## Add Column with Closure
2424

2525
```php
26-
use DataTables;
26+
use Yajra\DataTables\Facades\DataTables;
2727

2828
Route::get('user-data', function() {
2929
$model = App\User::query();
@@ -42,7 +42,7 @@ Route::get('user-data', function() {
4242
> {tip} You can use view to render your added column by passing the view path as the second argument on `addColumn` api.
4343
4444
```php
45-
use DataTables;
45+
use Yajra\DataTables\Facades\DataTables;
4646

4747
Route::get('user-data', function() {
4848
$model = App\User::query();
@@ -64,7 +64,7 @@ Hi {{ $name }}!
6464
> {tip} Just pass the column order as the third argument of `addColumn` api.
6565
6666
```php
67-
use DataTables;
67+
use Yajra\DataTables\Facades\DataTables;
6868

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

0 commit comments

Comments
 (0)