From 136bdb8d2779359647ea88b63e4c7222d6d0af6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Mon, 25 Mar 2024 14:02:30 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D0=B0=D1=82=D1=83=D1=81=20=D0=B8=D0=B7?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D0=BD=D0=BD=D1=8B=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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 2e7687a..af7ca84 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -461,7 +461,7 @@ class EmployerController extends Controller $Workers = Worker::query()->whereIn('id', $A); } else { - $Workers = Worker::query(); + $Workers = Worker::query()->where('id', '=', '0'); } if (($request->has('search')) && (!empty($request->get('search')))) { diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index d265918..3f41a8a 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -526,7 +526,7 @@ class WorkerController extends Controller $Query = Ad_employer::query()->whereIn('id', $A); } else { - $Query = Ad_employer::query(); + $Query = Ad_employer::query()->where('id', '=', '0'); } $Query = $Query->with('jobs')-> -- 1.7.10.4