where('atendimento_id', $value->id) ->count(); return $result == 0 || $result > 0 && $value->tipo_atendimento_id != TipoAtendimento::VISITA_DOMICILIAR_POS_OBITO; } public function message() { return 'Condição avaliada inválida'; } }