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':