getIdsByNames($roleNames); if (empty($roleIds)) return []; $rows = $this->select('nav_item_id') ->whereIn('role_id', $roleIds) ->findAll(); return array_values(array_unique(array_column($rows, 'nav_item_id'))); } }