From 5853363286531d9828c77ed9c0657c48349f738e Mon Sep 17 00:00:00 2001 From: anazaryan Date: Mon, 23 Dec 2024 15:30:08 +0400 Subject: [PATCH] fix basedata workers loading --- app/Http/Controllers/Admin/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/UsersController.php b/app/Http/Controllers/Admin/UsersController.php index 75016a3..97881b6 100644 --- a/app/Http/Controllers/Admin/UsersController.php +++ b/app/Http/Controllers/Admin/UsersController.php @@ -79,7 +79,7 @@ class UsersController extends Controller } $users = $users->Baseuser() - ->orderByDesc(Worker::select('created_at')->whereColumn('workers.user_id', 'users.id')) + ->orderByDesc('created_at') ->paginate(15); if ($request->ajax()) { -- 1.7.10.4