From d467eae70bc2f30cb190f3ba4b154fa6c8568ec5 Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Thu, 20 Jun 2024 13:11:09 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1?= =?UTF-8?q?=8F=20=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D0?= =?UTF-8?q?=B0=20"=D0=91=D0=B0=D0=B7=D0=B0=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1?= =?UTF-8?q?=85"=20=D0=B2=20=D0=BB=D0=B8=D1=87=D0=BD=D0=BE=D0=BC=20=D0=BA=D0=B0?= =?UTF-8?q?=D0=B1=D0=B8=D0=BD=D0=B5=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 2 +- app/Http/Controllers/WorkerController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index a92b3cc..1c70fd2 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -618,7 +618,7 @@ class EmployerController extends Controller // Данные $users = $users->Baseuser()-> - orderBy(Worker::select('position_work')->whereColumn('Workers.user_id', 'users.id')); + orderBy(Worker::select('position_work')->whereColumn('workers.user_id', 'users.id')); $count_users = $users; $users = $users->paginate(5); diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index 06c6488..7dd8ad2 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -111,12 +111,12 @@ class WorkerController extends Controller switch ($sort) { case 'name_up': $resumes = $resumes->orderBy(User::select('surname') - ->whereColumn('Workers.user_id', 'users.id') + ->whereColumn('workers.user_id', 'users.id') ); break; case 'name_down': $resumes = $resumes->orderByDesc(User::select('surname') - ->whereColumn('Workers.user_id', 'users.id') + ->whereColumn('workers.user_id', 'users.id') ); break; case 'created_at_up': -- 1.7.10.4