select([ 'id', 'codigo', 'descricao', ]) ->when(request()->ids, fn ($q, $ids) => $q->whereNotIn('id', $ids)); } }