Commit 5853363286531d9828c77ed9c0657c48349f738e

Authored by Hayk Nazaryan
1 parent c981f1c9c7
Exists in master

fix basedata workers loading

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

app/Http/Controllers/Admin/UsersController.php
... ... @@ -79,7 +79,7 @@ class UsersController extends Controller
79 79 }
80 80  
81 81 $users = $users->Baseuser()
82   - ->orderByDesc(Worker::select('created_at')->whereColumn('workers.user_id', 'users.id'))
  82 + ->orderByDesc('created_at')
83 83 ->paginate(15);
84 84  
85 85 if ($request->ajax()) {