diff --git a/app/Services/Hr/EmployeeService.php b/app/Services/Hr/EmployeeService.php index a9ed757..bdf6e55 100644 --- a/app/Services/Hr/EmployeeService.php +++ b/app/Services/Hr/EmployeeService.php @@ -25,6 +25,7 @@ public function paginateForIndex( ): LengthAwarePaginator { $query = User::query() ->with(['profile', 'employee', 'roles']) + ->whereDoesntHave('roles', fn ($query) => $query->where('name', Role::DEVELOPER->value)) ->when($tableQuery['search'] !== '', function ($query) use ($tableQuery): void { $search = $tableQuery['search']; $query->where(function ($query) use ($search): void {