Skip to content

Commit 5ec693f

Browse files
committed
Fix with trashed query.
Fix yajra/laravel-datatables#1079.
1 parent 70427ed commit 5ec693f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

with-trashed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To achieve this, we can use `withTrashed` api.
77
use Datatables;
88

99
Route::get('user-data', function() {
10-
$model = App\User::withTrashed()->query();
10+
$model = App\User::query()->withTrashed();
1111

1212
return Datatables::eloquent($model)
1313
->withTrashed()

0 commit comments

Comments
 (0)